]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.c (reread_symbols): Call objfiles_changed *before*
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 17 Aug 2009 20:09:38 +0000 (20:09 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 17 Aug 2009 20:09:38 +0000 (20:09 +0000)
calling clear_symtab_users.

gdb/ChangeLog
gdb/symfile.c

index d88dfca3752118993731ad82cec42b4c3ed4dda2..3af22c14b4329001f36875e4919780b0d47c53b7 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * symfile.c (reread_symbols): Call objfiles_changed *before*
+       calling clear_symtab_users.
+
 2009-08-17  Michael Snyder  <msnyder@vmware.com>
 
        * amd64-tdep.c: Add a frame unwinder for function epilogues.
index e30b613b93fdafafbbbda4e41c675b7a77891d62..515196602774a979aeec3c2dadc6197d6ade3a25 100644 (file)
@@ -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 ();
     }
 }