aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-06 18:01:06 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-06 18:01:06 +0000
commitebad9e902ca97adf1db3435bc2baad8743f68ba1 (patch)
treebe9d31dd7dc0b1e62789642aea9c49329d2bcdf8 /gdb
parentb4fd641ffbf47d50b4ed4c0c3b2ae7788c2c6ec4 (diff)
downloadgdb-ebad9e902ca97adf1db3435bc2baad8743f68ba1.zip
gdb-ebad9e902ca97adf1db3435bc2baad8743f68ba1.tar.gz
gdb-ebad9e902ca97adf1db3435bc2baad8743f68ba1.tar.bz2
* breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/breakpoint.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index df2509c..f34d3b8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b425ac1..ee5cf54 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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);