Skip to content

Commit

Permalink
fixed a bug in the breakpoint removal code
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyan-shopov authored and gsmcmullin committed May 6, 2017
1 parent 2f5295b commit d3a8f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d3a8f27

Please sign in to comment.