mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-06 15:43:09 +00:00
* breakpoint.c (remove_breakpoint): Do not fail if unable to remove
breakpoint from shared library.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
|
* breakpoint.c (remove_breakpoint): Do not fail if unable to remove
|
||||||
|
breakpoint from shared library.
|
||||||
|
|
||||||
2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
|
2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* solib-svr4.c (read_program_header): New function.
|
* solib-svr4.c (read_program_header): New function.
|
||||||
|
|||||||
@@ -1665,6 +1665,13 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is)
|
|||||||
val = 0;
|
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)
|
if (val)
|
||||||
return val;
|
return val;
|
||||||
b->inserted = (is == mark_inserted);
|
b->inserted = (is == mark_inserted);
|
||||||
|
|||||||
Reference in New Issue
Block a user