aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-07-22 20:00:34 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-07-22 20:00:34 +0000
commit8caee43bac0296eecebf3b9c80c48958044a95c5 (patch)
tree7848494d7a855d8f8b34e6bd0560e1db5f342e23
parentbb27289292f0e336ddd783e7781a00363fcd2e12 (diff)
downloadgdb-8caee43bac0296eecebf3b9c80c48958044a95c5.zip
gdb-8caee43bac0296eecebf3b9c80c48958044a95c5.tar.gz
gdb-8caee43bac0296eecebf3b9c80c48958044a95c5.tar.bz2
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 a741045..b638a8c 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 bbdb3ca..36480c1 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);