From ac8035ab9e1b8839f04ede4ff7f96e9c86c896cb Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 3 Feb 2010 14:13:16 +0000 Subject: 2010-02-03 Tristan Gingold * symfile.h (struct sym_fns): Add sym_relocate field. (default_symfile_relocate): New prototype. (symfile_relocate_debug_section): First argument is now an objfile. * symfile.c (default_symfile_relocate): Rename from symfile_relocate_debug_section, first argument is now an objfile. (symfile_relocate_debug_section): New function. * coffread.c (coff_sym_fns): Set sym_relocate field. * somread.c (som_sym_fns): Ditto. * mipsread.c (ecoff_sym_fns): Ditto. * machoread.c (macho_sym_fns): Ditto. * elfread.c (elf_sym_fns): Ditto. * dwarf2read.c (dwarf2_read_section): Ditto. * xcoffread.c (xcoff_sym_fns): Ditto. * dbxread.c (aout_sym_fns): Ditto. (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. (elfstab_build_psymtabs): Ditto. --- gdb/coffread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/coffread.c') diff --git a/gdb/coffread.c b/gdb/coffread.c index 8e5dca9..ba413ad 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -2128,6 +2128,7 @@ static struct sym_fns coff_sym_fns = default_symfile_segments, /* sym_segments: Get segment information from a file. */ NULL, /* sym_read_linetable */ + default_symfile_relocate, /* sym_relocate: Relocate a debug section. */ NULL /* next: pointer to next struct sym_fns */ }; -- cgit v1.1