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:
parent
f9d271cd64
commit
9f4bb5f303
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue