* 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:
Vladimir Prus
2009-02-18 07:28:34 +00:00
parent 62f59e66f8
commit c86cf02930
11 changed files with 85 additions and 5 deletions

View File

@@ -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;