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:
parent
d36df9c574
commit
a3247a2213
7 changed files with 291 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue