forgot to return, made processes viewed attached even though the debugger wasnt enabled

This commit is contained in:
LiquidFenrir 2017-12-17 19:31:05 +01:00
parent 57d03d6333
commit fee9f6b427

View File

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