diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-11-09 01:23:30 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-11-09 01:23:30 +0000 |
commit | 11cf87416416e13eff634a70b4954fe6a3912720 (patch) | |
tree | a6dc7a21bb3d45b89c3f95e4b5862ec9d2fab83b /gdb/symfile.c | |
parent | 98007ce7b0dea06f0c04d833d39b5a9c9773a07a (diff) | |
download | ppe42-binutils-11cf87416416e13eff634a70b4954fe6a3912720.tar.gz ppe42-binutils-11cf87416416e13eff634a70b4954fe6a3912720.zip |
import gdb-1999-11-08 snapshot
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index c727168652..80f9902950 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -66,6 +66,7 @@ extern int hp_cxx_exception_support_initialized; int (*ui_load_progress_hook) (const char *section, unsigned long num); void (*pre_add_symbol_hook) PARAMS ((char *)); void (*post_add_symbol_hook) PARAMS ((void)); +void (*target_new_objfile_hook) PARAMS ((struct objfile *)); /* Global variables owned by this file */ int readnow_symbol_files; /* Read full symbols immediately */ @@ -920,7 +921,8 @@ symbol_file_add (name, from_tty, addrs, mainline, flags) new_symfile_objfile (objfile, mainline, from_tty); - target_new_objfile (objfile); + if (target_new_objfile_hook) + target_new_objfile_hook (objfile); return (objfile); } @@ -2096,7 +2098,8 @@ clear_symtab_users () current_source_symtab = 0; current_source_line = 0; clear_pc_function_cache (); - target_new_objfile (NULL); + if (target_new_objfile_hook) + target_new_objfile_hook (NULL); } /* clear_symtab_users_once: |