From 1c2e8dec11540e54e955d14caf81409f2b29c179 Mon Sep 17 00:00:00 2001 From: Nanquitas Date: Wed, 22 Nov 2017 03:37:23 +0100 Subject: [PATCH] Fix the impossibility to set a second watchpoint --- sysmodules/rosalina/source/gdb/watchpoints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodules/rosalina/source/gdb/watchpoints.c b/sysmodules/rosalina/source/gdb/watchpoints.c index 36a60dc..7e6383f 100644 --- a/sysmodules/rosalina/source/gdb/watchpoints.c +++ b/sysmodules/rosalina/source/gdb/watchpoints.c @@ -164,7 +164,7 @@ int GDB_RemoveWatchpoint(GDBContext *ctx, u32 address, WatchpointKind kind) WatchpointKind GDB_GetWatchpointKind(GDBContext *ctx, u32 address) { u32 id; - for(id = 0; id < 2 && manager.watchpoints[id].address != address && manager.watchpoints[id].debug != ctx->debug; id++); + for(id = 0; id < 2 && (manager.watchpoints[id].address != address || manager.watchpoints[id].debug != ctx->debug); id++); return id == 2 ? WATCHPOINT_DISABLED : manager.watchpoints[id].kind; }