* breakpoint.c (remove_breakpoint): Do not fail if unable to remove

breakpoint from shared library.
This commit is contained in:
Ulrich Weigand 2008-08-26 17:36:44 +00:00
parent 97ec2c2fb8
commit 879d1e6b46
2 changed files with 12 additions and 0 deletions

View file

@ -1665,6 +1665,13 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is)
val = 0;
}
}
/* In some cases, we might not be able to remove a breakpoint
in a shared library that has already been removed, but we
have not yet processed the shlib unload event. */
if (val && solib_address (b->address))
val = 0;
if (val)
return val;
b->inserted = (is == mark_inserted);