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/symfile.c | |
parent | 494f80a9321dccb939bf39afed66649702b563fe (diff) | |
download | gdb-c486b6106a31e442cba13c74a103aad8463bbd20.zip gdb-c486b6106a31e442cba13c74a103aad8463bbd20.tar.gz gdb-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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 3614aa3..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. */ |