aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-25 23:17:12 +0000
committerDoug Evans <dje@google.com>2013-09-25 23:17:12 +0000
commit8fb8eb5ca4ca4c7a1410659a289e1a91c380832d (patch)
treef77f83bfe6fe0710e823d1dde50d463a4a3e51e1 /gdb/symfile.c
parentc256e171654791e456088ccb4c83d183650d8940 (diff)
downloadgdb-8fb8eb5ca4ca4c7a1410659a289e1a91c380832d.zip
gdb-8fb8eb5ca4ca4c7a1410659a289e1a91c380832d.tar.gz
gdb-8fb8eb5ca4ca4c7a1410659a289e1a91c380832d.tar.bz2
New option "set debug symfile on".
* NEWS: Mention "set debug symfile". * Makefile.in (SFILES): Add symfile-debug.c. (COMMON_OBS): Add symfile-debug.o. * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the objfile's symbol functions. * objfiles.h (objfile_set_sym_fns): Declare. * symfile-debug.c: New file. * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the objfile's symbol functions. (reread_symbols): Ditto.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 9bb3c55..ecf4e32 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -940,7 +940,7 @@ syms_from_objfile_1 (struct objfile *objfile,
struct cleanup *old_chain;
const int mainline = add_flags & SYMFILE_MAINLINE;
- objfile->sf = find_sym_fns (objfile->obfd);
+ objfile_set_sym_fns (objfile, find_sym_fns (objfile->obfd));
if (objfile->sf == NULL)
{
@@ -2530,7 +2530,7 @@ reread_symbols (void)
/* Reset the sym_fns pointer. The ELF reader can change it
based on whether .gdb_index is present, and we need it to
start over. PR symtab/15885 */
- objfile->sf = find_sym_fns (objfile->obfd);
+ objfile_set_sym_fns (objfile, find_sym_fns (objfile->obfd));
build_objfile_section_table (objfile);
terminate_minimal_symbol_table (objfile);