Fix logical bug when changing watchpoint flags

This commit is contained in:
Lior Halphon 2016-07-21 15:20:25 +03:00
parent 0fbc72f197
commit e6d4cac00e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}