tilib: fix breakpoint refresh.

If a breakpoint is set and then removed, with no refresh in between,
then no handle is ever assigned and so a request to remove the
breakpoint will fail.
This commit is contained in:
Daniel Beer 2012-08-23 15:00:44 +12:00
parent f9d271cd64
commit 9f4bb5f303
1 changed files with 3 additions and 0 deletions

View File

@ -397,6 +397,9 @@ static int refresh_bps(struct tilib_device *dev)
BP_WRITE_DMA);
break;
}
} else if (!dev->bp_handles[i]) {
bp->flags &= ~DEVICE_BP_DIRTY;
continue;
} else {
param.bpMode = BP_CLEAR;
}