mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
(mi_interpreter_init): Register the above. * solib.c (clear_solib): Notify solib unload. * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not disable breakpoints on a.out targets.
This commit is contained in:
@@ -4457,6 +4457,14 @@ disable_breakpoints_in_unloaded_shlib (struct so_list *solib)
|
||||
struct bp_location *loc;
|
||||
int disabled_shlib_breaks = 0;
|
||||
|
||||
/* SunOS a.out shared libraries are always mapped, so do not
|
||||
disable breakpoints; they will only be reported as unloaded
|
||||
through clear_solib when GDB discards its shared library
|
||||
list. See clear_solib for more information. */
|
||||
if (exec_bfd != NULL
|
||||
&& bfd_get_flavour (exec_bfd) == bfd_target_aout_flavour)
|
||||
return;
|
||||
|
||||
ALL_BP_LOCATIONS (loc)
|
||||
{
|
||||
struct breakpoint *b = loc->owner;
|
||||
|
||||
Reference in New Issue
Block a user