PR breakpoints/1450

* breakpoint.c (insert_bp_location): Fix a logic error by returning
	0 after a catchpoint fails.
This commit is contained in:
Daniel Jacobowitz 2003-11-12 17:00:42 +00:00
parent 39aa7ed394
commit 1640b8210d
2 changed files with 11 additions and 1 deletions

View 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.

View 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;