Merge pull request #972 from LiquidFenrir/ramviewer-fix

fix mistake, processes viewed were attached even if debugger was off
This commit is contained in:
TuxSH 2017-12-18 07:13:13 +01:00 committed by GitHub
commit 16530d3a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,7 +576,10 @@ static void ProcessListMenu_MemoryViewer(const ProcessInfo *info)
static inline void ProcessListMenu_HandleSelected(const ProcessInfo *info)
{
if(!gdbServer.super.running || info->isZombie)
{
ProcessListMenu_MemoryViewer(info);
return;
}
u32 id;
for(id = 0; id < MAX_DEBUG && (!(gdbServer.ctxs[id].flags & GDB_FLAG_SELECTED) || gdbServer.ctxs[id].pid != info->pid); id++);