Merge pull request #218 from stoyan-shopov/breakpoint-removal-bugfix

fixed a bug in the breakpoint removal code
This commit is contained in:
Gareth McMullin 2017-05-03 12:11:50 -07:00 committed by GitHub
commit 6b592b4118
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))