From e6d4cac00ee7e251b4b152c0b2d08e5cedaa6946 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 21 Jul 2016 15:20:25 +0300 Subject: [PATCH] Fix logical bug when changing watchpoint flags --- Core/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/debugger.c b/Core/debugger.c index b384626..bddc9ea 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -908,7 +908,7 @@ print_usage: uint16_t index = find_watchpoint(gb, result); if (index < gb->n_watchpoints && gb->watchpoints[index].key == key) { GB_log(gb, "Watchpoint already set at %s\n", debugger_value_to_string(gb, result, true)); - if (!gb->watchpoints[index].flags != flags) { + if (gb->watchpoints[index].flags != flags) { GB_log(gb, "Modified watchpoint type\n"); gb->watchpoints[index].flags = flags; }