mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
PR breakpoints/1450
* breakpoint.c (insert_bp_location): Fix a logic error by returning 0 after a catchpoint fails.
This commit is contained in:
parent
39aa7ed394
commit
1640b8210d
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user