From 8caee43bac0296eecebf3b9c80c48958044a95c5 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Wed, 22 Jul 2009 20:00:34 +0000 Subject: 2009-07-22 Paul Pluzhnikov * symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer. --- gdb/ChangeLog | 4 ++++ gdb/symfile.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'gdb') 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 + * symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer. + +2009-07-22 Paul Pluzhnikov + * 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); -- cgit v1.1