* breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.

This commit is contained in:
Jim Kingdon 1993-10-06 18:01:06 +00:00
parent b4fd641ffb
commit ebad9e902c
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,7 @@
Wed Oct 6 12:43:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com) Wed Oct 6 12:43:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
* README: Add Alpha notes from Schauer. * README: Add Alpha notes from Schauer.
Tue Oct 5 15:26:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com) Tue Oct 5 15:26:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)

View file

@ -2538,7 +2538,9 @@ delete_breakpoint (bpt)
if (bpt->inserted) if (bpt->inserted)
{ {
ALL_BREAKPOINTS (b) ALL_BREAKPOINTS (b)
if (b->address == bpt->address && !b->duplicate) if (b->address == bpt->address
&& !b->duplicate
&& b->enable != disabled)
{ {
int val; int val;
val = target_insert_breakpoint (b->address, b->shadow_contents); val = target_insert_breakpoint (b->address, b->shadow_contents);