From bd9ca83f2c8f1d7a9db5e5645fb5e8f10966948f Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 31 Oct 2004 17:48:17 +0000 Subject: [PATCH] 2004-10-31 Andrew Cagney * mdebugread.h (ecoff_relocate_efi): Delete declaration. * mdebugread.c (ecoff_relocate_efi): Delete function. * objfiles.c (objfile_relocate): Delete #ifdef MDEBUG_EFI_SYMBOL_NAME code. --- gdb/ChangeLog | 7 +++++++ gdb/mdebugread.c | 12 ------------ gdb/mdebugread.h | 2 -- gdb/objfiles.c | 10 ---------- 4 files changed, 7 insertions(+), 24 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e50e86d5a8e..0ec270a395b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2004-10-31 Andrew Cagney + + * mdebugread.h (ecoff_relocate_efi): Delete declaration. + * mdebugread.c (ecoff_relocate_efi): Delete function. + * objfiles.c (objfile_relocate): Delete #ifdef + MDEBUG_EFI_SYMBOL_NAME code. + 2004-10-31 Orjan Friberg Andrew Cagney diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index ba9c064638e..2c1a616a8a8 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -2005,18 +2005,6 @@ parse_procedure (PDR *pr, struct symtab *search_symtab, SYMBOL_TYPE (s) = nodebug_func_symbol_type; } -/* Relocate the extra function info pointed to by the symbol table. */ - -void -ecoff_relocate_efi (struct symbol *sym, CORE_ADDR delta) -{ - struct mdebug_extra_func_info *e; - - e = (struct mdebug_extra_func_info *) SYMBOL_VALUE (sym); - - e->pdr.adr += delta; -} - /* Parse the external symbol ES. Just call parse_symbol() after making sure we know where the aux are for it. BIGEND says whether aux entries are big-endian or little-endian. diff --git a/gdb/mdebugread.h b/gdb/mdebugread.h index 25b7beef13e..6046f7e62c4 100644 --- a/gdb/mdebugread.h +++ b/gdb/mdebugread.h @@ -25,8 +25,6 @@ #include "coff/sym.h" /* Needed for PDR below. */ #include "coff/symconst.h" -extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR); - /* Specific information about a procedure. Architectures (ab)uses this to save memory. */ diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 9528d580d8a..dce6156fc2c 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -555,16 +555,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets) SYMBOL_VALUE_ADDRESS (sym) += ANOFFSET (delta, SYMBOL_SECTION (sym)); } -#ifdef MDEBUG_EFI_SYMBOL_NAME - /* Relocate Extra Function Info for ecoff. */ - - else if (SYMBOL_CLASS (sym) == LOC_CONST - && SYMBOL_DOMAIN (sym) == LABEL_DOMAIN - && strcmp (DEPRECATED_SYMBOL_NAME (sym), - MDEBUG_EFI_SYMBOL_NAME) == 0) - ecoff_relocate_efi (sym, ANOFFSET (delta, - s->block_line_section)); -#endif } } } -- 2.30.2