From: Ulrich Weigand Date: Mon, 17 Aug 2009 20:09:38 +0000 (+0000) Subject: * symfile.c (reread_symbols): Call objfiles_changed *before* X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff3536bc839654611f072ec3a77451eba1c47342;p=binutils-gdb.git * symfile.c (reread_symbols): Call objfiles_changed *before* calling clear_symtab_users. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d88dfca3752..3af22c14b43 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-08-17 Ulrich Weigand + + * symfile.c (reread_symbols): Call objfiles_changed *before* + calling clear_symtab_users. + 2009-08-17 Michael Snyder * amd64-tdep.c: Add a frame unwinder for function epilogues. diff --git a/gdb/symfile.c b/gdb/symfile.c index e30b613b93f..51519660277 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2467,13 +2467,13 @@ reread_symbols (void) if (reread_one) { + /* Notify objfiles that we've modified objfile sections. */ + objfiles_changed (); + clear_symtab_users (); /* At least one objfile has changed, so we can consider that the executable we're debugging has changed too. */ observer_notify_executable_changed (); - - /* Notify objfiles that we've modified objfile sections. */ - objfiles_changed (); } }