aboutsummaryrefslogtreecommitdiff
path: root/src/target/lakemont.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/lakemont.c')
-rw-r--r--src/target/lakemont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/lakemont.c b/src/target/lakemont.c
index e46ee5c..230f53f 100644
--- a/src/target/lakemont.c
+++ b/src/target/lakemont.c
@@ -1024,10 +1024,10 @@ int lakemont_resume(struct target *t, int current, target_addr_t address,
/* if breakpoints are enabled, we need to redirect these into probe mode */
struct breakpoint *activeswbp = t->breakpoints;
- while (activeswbp && activeswbp->set == 0)
+ while (activeswbp && !activeswbp->is_set)
activeswbp = activeswbp->next;
struct watchpoint *activehwbp = t->watchpoints;
- while (activehwbp && activehwbp->set == 0)
+ while (activehwbp && !activehwbp->is_set)
activehwbp = activehwbp->next;
if (activeswbp || activehwbp)
buf_set_u32(x86_32->cache->reg_list[PMCR].value, 0, 32, 1);