summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-07-22 20:00:33 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-07-22 20:00:33 +0000
commit9f0d363c7b2f7ed9d0ce1da5705445925fe83e3a (patch)
tree4a17a7d46a225baddc60f5b9bb0e3a3d7aafb8a5
parentef8490c60a3f74b47f00f86ff2f6bb46717fcc96 (diff)
downloadgdb-9f0d363c7b2f7ed9d0ce1da5705445925fe83e3a.tar.gz
2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
* symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/symfile.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a741045cdc2..b638a8ce5cb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
+ * symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.
+
+2009-07-22 Paul Pluzhnikov <ppluzhnikov@google.com>
+
* objfiles.h (objfiles_changed): New prototype.
* objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p.
(allocate_objfile, free_objfile): Must rebuild section map.
diff --git a/gdb/symfile.c b/gdb/symfile.c
index bbdb3ca069d..36480c1f252 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1080,7 +1080,10 @@ symbol_file_add_with_addrs_or_offsets (bfd *abfd,
do_cleanups (my_cleanups);
if (objfile->sf == NULL)
- return objfile; /* No symbols. */
+ {
+ observer_notify_new_objfile (objfile);
+ return objfile; /* No symbols. */
+ }
new_symfile_objfile (objfile, add_flags);