From 76b11a3252e536b8fde5b895a36ae73c6042d4e1 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 26 Oct 2020 23:02:49 +0100 Subject: Do not continue program on add/remove breakpoint --- libpcsxcore/psxinterpreter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libpcsxcore') 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; -- cgit v1.2.3