OSDN Git Service

PR breakpoints/1450
authorDaniel Jacobowitz <dan@debian.org>
Wed, 12 Nov 2003 17:00:42 +0000 (17:00 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Wed, 12 Nov 2003 17:00:42 +0000 (17:00 +0000)
* breakpoint.c (insert_bp_location): Fix a logic error by returning
0 after a catchpoint fails.

gdb/ChangeLog
gdb/breakpoint.c

index b185824..5e32d49 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
+
+       PR breakpoints/1450
+       * breakpoint.c (insert_bp_location): Fix a logic error by returning
+       0 after a catchpoint fails.
+
 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
 
        * mips-tdep.c (msymbol_size): Delete.
index 86d9f17..0e95e20 100644 (file)
@@ -1071,7 +1071,11 @@ insert_bp_location (struct bp_location *bpt,
        bpt->owner->enable_state = bp_disabled;
       else
        bpt->inserted = 1;
-      return val;
+
+      /* We've already printed an error message if there was a problem
+        inserting this catchpoint, and we've disabled the catchpoint,
+        so just return success.  */
+      return 0;
     }
 
   return 0;