mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user