aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.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/elfread.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/elfread.c')
-rw-r--r--gdb/elfread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 3f6fbd9..4a3d713 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1419,14 +1419,14 @@ elf_symfile_read (struct objfile *objfile, int symfile_flags)
if (!objfile_has_partial_symbols (objfile)
&& dwarf2_initialize_objfile (objfile))
- objfile->sf = &elf_sym_fns_gdb_index;
+ objfile_set_sym_fns (objfile, &elf_sym_fns_gdb_index);
else
{
/* It is ok to do this even if the stabs reader made some
partial symbols, because OBJF_PSYMTABS_READ has not been
set, and so our lazy reader function will still be called
when needed. */
- objfile->sf = &elf_sym_fns_lazy_psyms;
+ objfile_set_sym_fns (objfile, &elf_sym_fns_lazy_psyms);
}
}
/* If the file has its own symbol tables it has no separate debug