Do not continue program on add/remove breakpoint

This commit is contained in:
Xavier Del Campo Romero 2020-10-26 23:02:49 +01:00
parent 5676534ec1
commit 76b11a3252
1 changed files with 4 additions and 2 deletions

View File

@ -1210,6 +1210,8 @@ static void process_gdb(void) {
static int step, must_continue;
struct msg msg;
start:
if (shutdown)
return;
@ -1243,8 +1245,8 @@ static void process_gdb(void) {
out.type = MSG_TYPE_ACK;
gdbstub_sys_send(&out);
goto start;
}
break;
case MSG_TYPE_BREAKPOINT: {
struct msg out;
@ -1253,8 +1255,8 @@ static void process_gdb(void) {
out.type = MSG_TYPE_ACK;
gdbstub_sys_send(&out);
goto start;
}
break;
case MSG_TYPE_SHUTDOWN:
shutdown = 1;