OSDN Git Service

2004-09-02 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Thu, 2 Sep 2004 19:16:36 +0000 (19:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 2 Sep 2004 19:16:36 +0000 (19:16 +0000)
* 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.

gdb/ChangeLog
gdb/config/m68k/st2000.mt
gdb/config/m68k/tm-cisco.h
gdb/config/m68k/tm-m68k.h [deleted file]
gdb/config/m68k/tm-monitor.h
gdb/config/m68k/tm-os68k.h
gdb/config/m68k/tm-vx68.h
gdb/m68k-tdep.c

index 4381370..b631f54 100644 (file)
@@ -1,5 +1,15 @@
 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.
+
        * config/m68k/tm-st2000.h: Delete.
        * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
        * config/sparc/fbsd.mt (TM_FILE): Delete.
index e71d8b4..8c503a4 100644 (file)
@@ -1,3 +1,2 @@
 # Target: Tandem ST-2000 phone switch
 TDEPFILES= m68k-tdep.o remote-st.o
-TM_FILE= tm-m68k.h
index 51e2cdc..0b60444 100644 (file)
@@ -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
 #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))
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
deleted file mode 100644 (file)
index 17b3198..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Parameters for execution on a 68000 series machine.
-   Copyright 1986, 1987, 1989, 1990, 1992, 1993, 1994, 1995, 1996, 1998,
-   1999, 2000, 2003 Free Software Foundation, Inc.
-
-   This file is part of GDB.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
-
-extern int m68k_get_longjmp_target (CORE_ADDR *);
index 1b00a8f..02d550d 100644 (file)
@@ -36,6 +36,4 @@
 
 /*#define NUM_REGS 18 */
 
-#include "m68k/tm-m68k.h"
-
 /* FIXME, should do GET_LONGJMP_TARGET for newlib.  */
index 815efff..8787624 100644 (file)
@@ -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 ab00246..93d4954 100644 (file)
@@ -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
 #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 8760797..1ada90a 100644 (file)
@@ -1047,7 +1047,7 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
    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;