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]

[commit] Eliminate tm-m68k.h


The file only contained an extern declaration for m68k_get_longjmp_target. The declaration being used by m68k tm files so that they could use it in a macro definition.

Thing is those macros were redundant -> m68k-tdep.c was setting the corresponding architecture vector anyway.

This cleans it up eliminating the need for tm-m68k.h.

committed,
Andrew
2004-09-02  Andrew Cagney  <cagney@gnu.org>

	* config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
	* config/m68k/tm-os68k.h: Ditto.
	* config/m68k/tm-monitor.h: Ditto.
	* config/m68k/tm-cisco.h: Ditto.
	* config/m68k/st2000.mt (TM_FILE): Delete.
	* config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
	* config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
	* config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
	* m68k-tdep.c (m68k_get_longjmp_target): Make static.

Index: m68k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68k-tdep.c,v
retrieving revision 1.94
diff -p -u -r1.94 m68k-tdep.c
--- m68k-tdep.c	24 Jul 2004 01:00:19 -0000	1.94
+++ m68k-tdep.c	2 Sep 2004 19:14:50 -0000
@@ -1047,7 +1047,7 @@ fill_fpregset (fpregset_t *fpregsetp, in
    we extract the pc (JB_PC) that we will land at.  The pc is copied into PC.
    This routine returns true on success. */
 
-int
+static int
 m68k_get_longjmp_target (CORE_ADDR *pc)
 {
   char *buf;
Index: config/m68k/st2000.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/st2000.mt,v
retrieving revision 1.2
diff -p -u -r1.2 st2000.mt
--- config/m68k/st2000.mt	2 Sep 2004 19:08:35 -0000	1.2
+++ config/m68k/st2000.mt	2 Sep 2004 19:14:50 -0000
@@ -1,3 +1,2 @@
 # Target: Tandem ST-2000 phone switch
 TDEPFILES= m68k-tdep.o remote-st.o
-TM_FILE= tm-m68k.h
Index: config/m68k/tm-cisco.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-cisco.h,v
retrieving revision 1.5
diff -p -u -r1.5 tm-cisco.h
--- config/m68k/tm-cisco.h	17 Sep 2003 14:24:31 -0000	1.5
+++ config/m68k/tm-cisco.h	2 Sep 2004 19:14:50 -0000
@@ -22,8 +22,6 @@
 
 #define DEFAULT_PROMPT		"(cisco-68k-gdb) "	/* Default prompt */
 
-#include "m68k/tm-m68k.h"
-
 /* Offsets (in target ints) into jmp_buf.  Defined in /csc/sys/sun/asm.S. */
 
 #define JB_ELEMENT_SIZE 4
@@ -42,13 +40,6 @@
 #define JB_A6 11
 #define JB_SP 12
 
-/* Figure out where the longjmp will land.  Slurp the args out of the stack.
-   We expect the first arg to be a pointer to the jmp_buf structure from which
-   we extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
-   This routine returns true on success */
-
-#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
-
 /* BFD handles finding the registers in the core file, so they are at
    the start of the BFD .reg section.  */
 #define REGISTER_U_ADDR(addr,blockend,regno) (addr = DEPRECATED_REGISTER_BYTE (regno))
Index: config/m68k/tm-monitor.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-monitor.h,v
retrieving revision 1.3
diff -p -u -r1.3 tm-monitor.h
--- config/m68k/tm-monitor.h	5 Jan 2003 01:39:55 -0000	1.3
+++ config/m68k/tm-monitor.h	2 Sep 2004 19:14:50 -0000
@@ -36,6 +36,4 @@
 
 /*#define NUM_REGS 18 */
 
-#include "m68k/tm-m68k.h"
-
 /* FIXME, should do GET_LONGJMP_TARGET for newlib.  */
Index: config/m68k/tm-os68k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-os68k.h,v
retrieving revision 1.4
diff -p -u -r1.4 tm-os68k.h
--- config/m68k/tm-os68k.h	24 Mar 2003 03:54:50 -0000	1.4
+++ config/m68k/tm-os68k.h	2 Sep 2004 19:14:50 -0000
@@ -23,8 +23,6 @@
 
 #define	DEFAULT_PROMPT		"(os68k) "
 
-#include "m68k/tm-m68k.h"
-
 /* We have more complex, useful breakpoints on the target.  */
 #undef DECR_PC_AFTER_BREAK
 #define	DECR_PC_AFTER_BREAK	0
Index: config/m68k/tm-vx68.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-vx68.h,v
retrieving revision 1.11
diff -p -u -r1.11 tm-vx68.h
--- config/m68k/tm-vx68.h	1 Aug 2004 14:37:02 -0000	1.11
+++ config/m68k/tm-vx68.h	2 Sep 2004 19:14:50 -0000
@@ -30,7 +30,6 @@
 /* We have more complex, useful breakpoints on the target.  */
 #define	DECR_PC_AFTER_BREAK	0
 
-#include "m68k/tm-m68k.h"
 #include "config/tm-vxworks.h"
 
 /* Takes the current frame-struct pointer and returns the chain-pointer
@@ -64,10 +63,3 @@
 #define JB_A4 13
 #define JB_A5 14
 #define JB_A6 15
-
-/* Figure out where the longjmp will land.  Slurp the args out of the stack.
-   We expect the first arg to be a pointer to the jmp_buf structure from which
-   we extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
-   This routine returns true on success */
-
-#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)

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