gdb: rework meaning of selected/used

This commit is contained in:
TuxSH
2019-04-10 23:38:10 +02:00
parent bd670cf87c
commit e57b546dd4
3 changed files with 10 additions and 9 deletions

View File

@@ -73,7 +73,7 @@ void debuggerSetNextApplicationDebugHandle(Handle debug)
GDB_LockAllContexts(&gdbServer);
nextApplicationGdbCtx->debug = debug;
if (debug == 0)
nextApplicationGdbCtx->flags = (GDBFlags)0;
nextApplicationGdbCtx->flags = 0;
else
nextApplicationGdbCtx->flags |= GDB_FLAG_ATTACHED_AT_START;
nextApplicationGdbCtx = NULL;