aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
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 /gdb/symfile.c
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.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c5
1 files changed, 4 insertions, 1 deletions
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);