Skip to content

Commit

Permalink
Merge pull request #972 from LiquidFenrir/ramviewer-fix
Browse files Browse the repository at this point in the history
fix mistake, processes viewed were attached even if debugger was off
  • Loading branch information
TuxSH committed Dec 18, 2017
2 parents 20af9c6 + fee9f6b commit 16530d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sysmodules/rosalina/source/menus/process_list.c
Expand Up @@ -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++);
Expand Down

0 comments on commit 16530d3

Please sign in to comment.