mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
* printcmd.c (do_one_display): Reparse exp_string. (display_uses_solib_p): New function. (clear_dangling_display_expressions): New function. (_initialize_printcmd): Add observer. * solib.c (no_shared_libraries): Swap order of calls to clear_solib and objfile_purge_solibs.
This commit is contained in:
@ -999,8 +999,13 @@ sharedlibrary_command (char *args, int from_tty)
|
||||
void
|
||||
no_shared_libraries (char *ignored, int from_tty)
|
||||
{
|
||||
objfile_purge_solibs ();
|
||||
/* The order of the two routines below is important: clear_solib notifies
|
||||
the solib_unloaded observers, and some of these observers might need
|
||||
access to their associated objfiles. Therefore, we can not purge the
|
||||
solibs' objfiles before clear_solib has been called. */
|
||||
|
||||
clear_solib ();
|
||||
objfile_purge_solibs ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user