diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-11-12 17:00:42 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-11-12 17:00:42 +0000 |
commit | 1640b8210df6a1a8d4a7d1d487c9bc88bae1122d (patch) | |
tree | 1f1cc3329e7ad88664d1f37452fc6a0e800c9cc0 | |
parent | 39aa7ed394401b7199bdef7e29ca6aba5ebb83d0 (diff) | |
download | binutils-gdb-1640b8210df6a1a8d4a7d1d487c9bc88bae1122d.tar.gz |
PR breakpoints/1450
* breakpoint.c (insert_bp_location): Fix a logic error by returning
0 after a catchpoint fails.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/breakpoint.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b185824aae6..5e32d494800 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 86d9f174232..0e95e208cc3 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; |