This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obish] Delete ecoff_relocate_efi


Chipping away,

ecoff_relocate_efi is used to relocate the pdr.adr field. It turns out that:

- alpha doesn't use the field
- mips does it's own local relocation

So the function is doing nothing useful, I've deleted both it and its call site

Andrew
2004-10-31  Andrew Cagney  <cagney@gnu.org>

	* 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.

Index: mdebugread.c
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.c,v
retrieving revision 1.69
diff -p -u -r1.69 mdebugread.c
--- mdebugread.c	31 Oct 2004 16:31:50 -0000	1.69
+++ mdebugread.c	31 Oct 2004 17:47:16 -0000
@@ -2005,18 +2005,6 @@ parse_procedure (PDR *pr, struct 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.
Index: mdebugread.h
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.h,v
retrieving revision 1.2
diff -p -u -r1.2 mdebugread.h
--- mdebugread.h	31 Oct 2004 04:33:13 -0000	1.2
+++ mdebugread.h	31 Oct 2004 17:47:16 -0000
@@ -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.  */
 
Index: objfiles.c
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.c,v
retrieving revision 1.58
diff -p -u -r1.58 objfiles.c
--- objfiles.c	31 Oct 2004 03:42:52 -0000	1.58
+++ objfiles.c	31 Oct 2004 17:47:16 -0000
@@ -555,16 +555,6 @@ objfile_relocate (struct objfile *objfil
 		  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
 	    }
 	}
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]