* breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 6 Oct 1993 18:01:06 +0000 (18:01 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 6 Oct 1993 18:01:06 +0000 (18:01 +0000)
gdb/ChangeLog
gdb/breakpoint.c

index df2509c2d447ea38e1ecba03e82bed003467cca4..f34d3b8b048fa20c574b053c782b0c0af9395455 100644 (file)
@@ -1,5 +1,7 @@
 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.
 
 Tue Oct  5 15:26:04 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
index b425ac12174557e66ad856b6f9126d49352e1594..ee5cf541d693859163b692d0502d5050f9fc5220 100644 (file)
@@ -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);