]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Pass the correct argument to the observer in reread_symbols
authorTom Tromey <tom@tromey.com>
Sun, 8 Jul 2018 18:18:09 +0000 (12:18 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:05 +0000 (13:20 -0600)
This is actually a patch I found via another route.  Joel had asked me
to write a test, but I still have not found the time to do this.
Meanwhile, -Wunused-variable also found this error.

gdb/ChangeLog
2018-07-22  Tom Tromey  <tom@tromey.com>

* symfile.c (reread_symbols): Notify iter, not objfile.

gdb/ChangeLog
gdb/symfile.c

index 5b557a6e8a76eb848a5bb2aabcb4e45235b33b1c..a0a388f166bae8f9b9361ef3c1488e416b05933c 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-22  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (reread_symbols): Notify iter, not objfile.
+
 2018-07-22  Tom Tromey  <tom@tromey.com>
 
        * ravenscar-thread.c (ravenscar_thread_target::store_registers):
index 3614aa3f95559365fb329af75819e521b0ce98e0..20697d9dca25ca047198b16417f1ae8475807323 100644 (file)
@@ -2608,7 +2608,7 @@ reread_symbols (void)
         gdb::observers::new_objfile.notify (NULL) has been called by
         clear_symtab_users above.  Notify the new files now.  */
       for (auto iter : new_objfiles)
-       gdb::observers::new_objfile.notify (objfile);
+       gdb::observers::new_objfile.notify (iter);
 
       /* At least one objfile has changed, so we can consider that
          the executable we're debugging has changed too.  */