diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-10-26 23:02:49 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-10-26 23:02:49 +0100 |
| commit | 76b11a3252e536b8fde5b895a36ae73c6042d4e1 (patch) | |
| tree | c5f8530fdca0fa28f27293ddb7df9d8696dd6aa0 | |
| parent | 5676534ec1452864f8fac1de2f494195ebe5908b (diff) | |
Do not continue program on add/remove breakpoint
| -rw-r--r-- | libpcsxcore/psxinterpreter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libpcsxcore/psxinterpreter.c b/libpcsxcore/psxinterpreter.c index 0066b7c7..ae100cb9 100644 --- a/libpcsxcore/psxinterpreter.c +++ b/libpcsxcore/psxinterpreter.c @@ -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; |
