From d3a8f27fdbf952194e8fc5ce9b2fc9bcef7c545c Mon Sep 17 00:00:00 2001 From: stoyan shopov Date: Fri, 28 Apr 2017 13:22:59 +0300 Subject: [PATCH] fixed a bug in the breakpoint removal code --- src/target/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/target.c b/src/target/target.c index fe11079..54ab8bf 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -355,7 +355,7 @@ int target_breakwatch_clear(target *t, { struct breakwatch *bwp = NULL, *bw; int ret = 1; - for (bw = t->bw_list; bw; bw = bw->next, bwp = bw) + for (bw = t->bw_list; bw; bwp = bw, bw = bw->next) if ((bw->type == type) && (bw->addr == addr) && (bw->size == len))