aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-11-12 17:00:42 +0000
committerDaniel Jacobowitz <drow@false.org>2003-11-12 17:00:42 +0000
commit1640b8210df6a1a8d4a7d1d487c9bc88bae1122d (patch)
tree1f1cc3329e7ad88664d1f37452fc6a0e800c9cc0 /gdb/breakpoint.c
parent39aa7ed394401b7199bdef7e29ca6aba5ebb83d0 (diff)
downloadgdb-1640b8210df6a1a8d4a7d1d487c9bc88bae1122d.zip
gdb-1640b8210df6a1a8d4a7d1d487c9bc88bae1122d.tar.gz
gdb-1640b8210df6a1a8d4a7d1d487c9bc88bae1122d.tar.bz2
PR breakpoints/1450
* breakpoint.c (insert_bp_location): Fix a logic error by returning 0 after a catchpoint fails.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 86d9f17..0e95e20 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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;