* breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
This commit is contained in:
parent
b4fd641ffb
commit
ebad9e902c
2 changed files with 5 additions and 1 deletions
|
@ -2538,7 +2538,9 @@ delete_breakpoint (bpt)
|
|||
if (bpt->inserted)
|
||||
{
|
||||
ALL_BREAKPOINTS (b)
|
||||
if (b->address == bpt->address && !b->duplicate)
|
||||
if (b->address == bpt->address
|
||||
&& !b->duplicate
|
||||
&& b->enable != disabled)
|
||||
{
|
||||
int val;
|
||||
val = target_insert_breakpoint (b->address, b->shadow_contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue