* breakpoint.c (breakpoint_init_inferior): Also delete
bp_shlib_event breakpoints. * solib-frv.c (enable_break): Remove call to remove_solib_event_breakpoints. * solib-svr4.c (enable_break): Ditto. * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. * solib-som.c (som_solib_create_inferior_hook): Ditto. * solib-spu.c (spu_enable_break): Ditto.
This commit is contained in:
parent
e6baae03e6
commit
ab92d69b1e
8 changed files with 34 additions and 28 deletions
|
@ -2248,13 +2248,31 @@ breakpoint_init_inferior (enum inf_context context)
|
|||
switch (b->type)
|
||||
{
|
||||
case bp_call_dummy:
|
||||
case bp_watchpoint_scope:
|
||||
|
||||
/* If the call dummy breakpoint is at the entry point it will
|
||||
cause problems when the inferior is rerun, so we better
|
||||
get rid of it.
|
||||
cause problems when the inferior is rerun, so we better get
|
||||
rid of it. */
|
||||
|
||||
case bp_watchpoint_scope:
|
||||
|
||||
/* Also get rid of scope breakpoints. */
|
||||
|
||||
case bp_shlib_event:
|
||||
|
||||
/* Also remove solib event breakpoints. Their addresses may
|
||||
have changed since the last time we ran the program.
|
||||
Actually we may now be debugging against different target;
|
||||
and so the solib backend that installed this breakpoint may
|
||||
not be used in by the target. E.g.,
|
||||
|
||||
(gdb) file prog-linux
|
||||
(gdb) run # native linux target
|
||||
...
|
||||
(gdb) kill
|
||||
(gdb) file prog-win.exe
|
||||
(gdb) tar rem :9999 # remote Windows gdbserver.
|
||||
*/
|
||||
|
||||
Also get rid of scope breakpoints. */
|
||||
delete_breakpoint (b);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue