fixed a bug in the breakpoint removal code

This commit is contained in:
stoyan shopov 2017-04-28 13:22:59 +03:00 committed by Gareth McMullin
parent 2f5295ba14
commit d3a8f27fdb
1 changed files with 1 additions and 1 deletions

View File

@ -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))