summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-11-09 01:23:30 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-11-09 01:23:30 +0000
commit4f8354a4b24fa3b22f09bd72c192edfe11d0b9c9 (patch)
tree4deb02d0a6d263144918286d6c85f13ad424f77f /gdb/symfile.c
parentd3d25b47f514232bc58078371111b1c446149f8a (diff)
downloadgdb-4f8354a4b24fa3b22f09bd72c192edfe11d0b9c9.tar.gz
import gdb-1999-11-08 snapshot
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index c7271686523..80f99029503 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: