From 3ac3eccebb613f9ce5e222e1aadf96234e552861 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 30 Sep 2016 01:09:17 +0300 Subject: [PATCH] Bugfix: Multiple watchpoints did not work correctly and conflicted with breakpoints --- Core/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/debugger.c b/Core/debugger.c index a689ea7..c4b5ef5 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -1406,7 +1406,7 @@ void GB_debugger_test_write_watchpoint(GB_gameboy_t *gb, uint16_t addr, uint8_t static bool _GB_debugger_test_read_watchpoint(GB_gameboy_t *gb, value_t addr) { - uint16_t index = find_breakpoint(gb, addr); + uint16_t index = find_watchpoint(gb, addr); uint32_t key = WP_KEY(addr); if (index < gb->n_watchpoints && gb->watchpoints[index].key == key) {