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] Cleanup MIPS SKIP_TRAMPOLINE_CODE


Again #undefed when no need, committed.
Andrew
2004-10-26  Andrew Cagney  <cagney@gnu.org>

	* config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
	* mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
	(mips_gdbarch_init): Update.
	(mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.336
diff -p -u -r1.336 mips-tdep.c
--- mips-tdep.c	26 Oct 2004 14:24:37 -0000	1.336
+++ mips-tdep.c	26 Oct 2004 14:43:02 -0000
@@ -5289,13 +5289,10 @@ mips_breakpoint_from_pc (CORE_ADDR *pcpt
    a return stub and the target PC is in $18.
 
    See the source code for the stubs in gcc/config/mips/mips16.S for
-   gory details.
-
-   This function implements the SKIP_TRAMPOLINE_CODE macro.
- */
+   gory details.  */
 
 static CORE_ADDR
-mips_skip_stub (CORE_ADDR pc)
+mips_skip_trampoline_code (CORE_ADDR pc)
 {
   char *name;
   CORE_ADDR start_addr;
@@ -5960,7 +5957,7 @@ mips_gdbarch_init (struct gdbarch_info i
      is sitting on?  */
   set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 1);
 
-  set_gdbarch_skip_trampoline_code (gdbarch, mips_skip_stub);
+  set_gdbarch_skip_trampoline_code (gdbarch, mips_skip_trampoline_code);
 
   /* NOTE drow/2004-02-11: We overload the core solib trampoline code
      to support MIPS16.  This is a bad thing.  Make sure not to do it
@@ -6185,9 +6182,6 @@ mips_dump_tdep (struct gdbarch *current_
 		      "mips_dump_tdep: SETUP_ARBITRARY_FRAME # %s\n",
 		      XSTRING (SETUP_ARBITRARY_FRAME (NUMARGS, ARGS)));
   fprintf_unfiltered (file,
-		      "mips_dump_tdep: SKIP_TRAMPOLINE_CODE # %s\n",
-		      XSTRING (SKIP_TRAMPOLINE_CODE (PC)));
-  fprintf_unfiltered (file,
 		      "mips_dump_tdep: SOFTWARE_SINGLE_STEP # %s\n",
 		      XSTRING (SOFTWARE_SINGLE_STEP (SIG, BP_P)));
   fprintf_unfiltered (file,
Index: config/mips/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-linux.h,v
retrieving revision 1.12
diff -p -u -r1.12 tm-linux.h
--- config/mips/tm-linux.h	26 Oct 2004 14:24:38 -0000	1.12
+++ config/mips/tm-linux.h	26 Oct 2004 14:43:02 -0000
@@ -26,7 +26,6 @@
 
 /* We don't want to inherit tm-mips.h's shared library trampoline code.  */
 
-#undef SKIP_TRAMPOLINE_CODE
 #undef IGNORE_HELPER_CALL
 
 /* GNU/Linux MIPS has __SIGRTMAX == 127.  */

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