X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Flakemont.c;h=230f53fe032398521b156352ab16a3346ae792d7;hb=fb43f1ff4e2f0638110ffcc4e63bee8b5361db64;hp=e46ee5cf83f09d29cd9170835e6c4212d2b336d2;hpb=ab43721be6ff7470ff8b9771c95c1d5661a5a689;p=openocd.git diff --git a/src/target/lakemont.c b/src/target/lakemont.c index e46ee5cf83..230f53fe03 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);