diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0caedec..8a7057b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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; |