diff options
author | Tom Tromey <tom@tromey.com> | 2018-07-08 12:18:09 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-22 13:20:05 -0600 |
commit | c486b6106a31e442cba13c74a103aad8463bbd20 (patch) | |
tree | 9c49a52c7308b6a59269b38b15d134fe31f4bea9 /gdb | |
parent | 494f80a9321dccb939bf39afed66649702b563fe (diff) | |
download | binutils-c486b6106a31e442cba13c74a103aad8463bbd20.zip binutils-c486b6106a31e442cba13c74a103aad8463bbd20.tar.gz binutils-c486b6106a31e442cba13c74a103aad8463bbd20.tar.bz2 |
Pass the correct argument to the observer in reread_symbols
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b557a6..a0a388f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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): Use arch_ops. (ravenscar_thread_target::prepare_to_store): Likewise. diff --git a/gdb/symfile.c b/gdb/symfile.c index 3614aa3f..20697d9 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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. */ |