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]

[PATCH] delete TARGET_SYMFILE_POSTREAD macro


This macro wasn't re-defined by anybody. Seems like it was introduced
in 1995 for Mips. 

elena


2003-06-02  Elena Zannoni  <ezannoni@redhat.com>

	* target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro. 
	* symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
	(syms_from_objfile): Ditto.

Index: target.h
===================================================================
RCS file: /cvs/uberbaum/gdb/target.h,v
retrieving revision 1.39
diff -u -p -r1.39 target.h
--- target.h	15 May 2003 22:58:39 -0000	1.39
+++ target.h	2 Jun 2003 23:07:26 -0000
@@ -945,12 +945,6 @@ extern void (*target_new_objfile_hook) (
 #define target_get_thread_local_address_p() \
     (target_get_thread_local_address != NULL)
 
-/* Hook to call target-dependent code after reading in a new symbol table.  */
-
-#ifndef TARGET_SYMFILE_POSTREAD
-#define TARGET_SYMFILE_POSTREAD(OBJFILE)
-#endif
-
 /* Hook to call target dependent code just after inferior target process has
    started.  */

Index: symfile.c
===================================================================
RCS file: /cvs/uberbaum/gdb/symfile.c,v
retrieving revision 1.94
diff -u -p -r1.94 symfile.c
--- symfile.c	14 May 2003 17:43:19 -0000	1.94
+++ symfile.c	2 Jun 2003 23:08:25 -0000
@@ -792,13 +792,6 @@ syms_from_objfile (struct objfile *objfi
   /* Discard cleanups as symbol reading was successful.  */
 
   discard_cleanups (old_chain);
-
-  /* Call this after reading in a new symbol table to give target
-     dependent code a crack at the new symbols.  For instance, this
-     could be used to update the values of target-specific symbols GDB
-     needs to keep track of (such as _sigtramp, or whatever).  */
-
-  TARGET_SYMFILE_POSTREAD (objfile);
 }
 
 /* Perform required actions after either reading in the initial
@@ -2041,14 +2034,6 @@ reread_symbols (void)
 	         again now.  */
 	      objfile->mtime = new_modtime;
 	      reread_one = 1;
-
-	      /* Call this after reading in a new symbol table to give target
-	         dependent code a crack at the new symbols.  For instance, this
-	         could be used to update the values of target-specific symbols GDB
-	         needs to keep track of (such as _sigtramp, or whatever).  */
-
-	      TARGET_SYMFILE_POSTREAD (objfile);
-
               reread_separate_symbols (objfile);
 	    }
 	}


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