aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-05-31 00:59:15 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-05-31 00:59:15 +0000
commit9ce5c36a4b3ab64d6cd1ee189e6c566370d1761c (patch)
tree55dcd12c17da769c6a75415fe6df4d6fd5d23947 /gdb/config
parentef3cf0627ae0fd56b9a59dcdfb71275d8c459e79 (diff)
downloadgdb-9ce5c36a4b3ab64d6cd1ee189e6c566370d1761c.zip
gdb-9ce5c36a4b3ab64d6cd1ee189e6c566370d1761c.tar.gz
gdb-9ce5c36a4b3ab64d6cd1ee189e6c566370d1761c.tar.bz2
* Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
sparcnbsd-nat.c, and sparcnbsd-tdep.c. (sparc64nbsd-nat.o) (sparcnbsd-nat.o) (sparcnbsd-tdep.o): New dependency lists. * NEWS: Note new UltraSPARC NetBSD native configuration. * configure.host (sparc64-*-netbsd*): New host. * configure.tgt (sparc-*-netbsdelf*) (sparc-*-netbsd*): Set gdb_target to nbsd. (sparc64-*-netbsd*): New target. * sparc64nbsd-nat.c: New file. * sparcnbsd-nat.c: New file. * sparcnbsd-tdep.c: New file. * sparcnbsd-tdep.h: New file. * config/sparc/nbsd.mt: New file. * config/sparc/nbsd64.mh: New file. * config/sparc/nbsd64.mt: New file. * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o, sparc-nat.o, and solib.o. Add sparcnbsd-nat.o. (HOST_IPC): Remove. * config/sparc/nbsdaout.mt: Remove. * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o, sparc-nat.o, and solib.o. Add sparcnbsd-nat.o. (HOST_IPC): Remove. * config/sparc/nbsdelf.mt: Remove. * config/sparc/nm-nbsd.h: Update copyright years. Remove all sparc-nat.c compatiblity defines. * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h. (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL. * config/sparc/tm-nbsd64.h: New file. * config/sparc/tm-nbsdaout.h: Remove. * config/sparc/xm-nbsd.h: Remove.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/sparc/nbsd.mt4
-rw-r--r--gdb/config/sparc/nbsd64.mh3
-rw-r--r--gdb/config/sparc/nbsd64.mt4
-rw-r--r--gdb/config/sparc/nbsdaout.mh4
-rw-r--r--gdb/config/sparc/nbsdaout.mt3
-rw-r--r--gdb/config/sparc/nbsdelf.mh4
-rw-r--r--gdb/config/sparc/nbsdelf.mt3
-rw-r--r--gdb/config/sparc/nm-nbsd.h28
-rw-r--r--gdb/config/sparc/tm-nbsd.h5
-rw-r--r--gdb/config/sparc/tm-nbsd64.h (renamed from gdb/config/sparc/xm-nbsd.h)13
-rw-r--r--gdb/config/sparc/tm-nbsdaout.h30
11 files changed, 27 insertions, 74 deletions
diff --git a/gdb/config/sparc/nbsd.mt b/gdb/config/sparc/nbsd.mt
new file mode 100644
index 0000000..b04dd42
--- /dev/null
+++ b/gdb/config/sparc/nbsd.mt
@@ -0,0 +1,4 @@
+# Target: SPARC running NetBSD
+TDEPFILES= sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o corelow.o solib.o \
+ solib-svr4.o
+TM_FILE= tm-nbsd.h
diff --git a/gdb/config/sparc/nbsd64.mh b/gdb/config/sparc/nbsd64.mh
new file mode 100644
index 0000000..eb54e48
--- /dev/null
+++ b/gdb/config/sparc/nbsd64.mh
@@ -0,0 +1,3 @@
+# Host: UltraSPARC running NetBSD
+NATDEPFILES= fork-child.o infptrace.o inftarg.o sparc64nbsd-nat.o
+NAT_FILE= nm-nbsd.h
diff --git a/gdb/config/sparc/nbsd64.mt b/gdb/config/sparc/nbsd64.mt
new file mode 100644
index 0000000..93b8f78
--- /dev/null
+++ b/gdb/config/sparc/nbsd64.mt
@@ -0,0 +1,4 @@
+# Target: UltraSPARC running NetBSD
+TDEPFILES= sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o corelow.o solib.o \
+ solib-svr4.o
+TM_FILE= tm-nbsd64.h
diff --git a/gdb/config/sparc/nbsdaout.mh b/gdb/config/sparc/nbsdaout.mh
index ecb69e4..4520899 100644
--- a/gdb/config/sparc/nbsdaout.mh
+++ b/gdb/config/sparc/nbsdaout.mh
@@ -1,6 +1,4 @@
# Host: Sun 4 or Sparcstation, running NetBSD
-NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o \
- solib.o solib-sunos.o
+NATDEPFILES= fork-child.o infptrace.o inftarg.o sparcnbsd-nat.o solib-sunos.o
XM_FILE= xm-nbsd.h
NAT_FILE= nm-nbsdaout.h
-HOST_IPC=-DBSD_IPC
diff --git a/gdb/config/sparc/nbsdaout.mt b/gdb/config/sparc/nbsdaout.mt
deleted file mode 100644
index c603f36..0000000
--- a/gdb/config/sparc/nbsdaout.mt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Target: Sun 4 or Sparcstation, running NetBSD
-TDEPFILES= sparc-tdep.o
-TM_FILE= tm-nbsdaout.h
diff --git a/gdb/config/sparc/nbsdelf.mh b/gdb/config/sparc/nbsdelf.mh
index 8581c1b..1042d91 100644
--- a/gdb/config/sparc/nbsdelf.mh
+++ b/gdb/config/sparc/nbsdelf.mh
@@ -1,6 +1,4 @@
# Host: Sun 4 or Sparcstation, running NetBSD
-NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o \
- solib.o solib-svr4.o solib-legacy.o
+NATDEPFILES= fork-child.o infptrace.o inftarg.o sparcnbsd-nat.o
XM_FILE= xm-nbsd.h
NAT_FILE= nm-nbsd.h
-HOST_IPC=-DBSD_IPC
diff --git a/gdb/config/sparc/nbsdelf.mt b/gdb/config/sparc/nbsdelf.mt
deleted file mode 100644
index 5c89318..0000000
--- a/gdb/config/sparc/nbsdelf.mt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Target: Sun 4 or Sparcstation, running NetBSD
-TDEPFILES= sparc-tdep.o
-TM_FILE= tm-nbsd.h
diff --git a/gdb/config/sparc/nm-nbsd.h b/gdb/config/sparc/nm-nbsd.h
index 653be85..957a34e 100644
--- a/gdb/config/sparc/nm-nbsd.h
+++ b/gdb/config/sparc/nm-nbsd.h
@@ -1,5 +1,5 @@
/* Native-dependent definitions for Sparc running NetBSD, for GDB.
- Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1999, 2000
+ Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1999, 2000, 2002
Free Software Foundation, Inc.
This file is part of GDB.
@@ -32,30 +32,4 @@
#define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES)
-/* Make things match up with what is expected in sparc-nat.c. */
-
-#define regs trapframe
-#define fp_status fpstate
-
-#define r_g1 tf_global[1]
-#define r_ps tf_psr
-#define r_pc tf_pc
-#define r_npc tf_npc
-#define r_y tf_y
-
-#define fpu fpstate
-#define fpu_regs fs_regs
-#define fpu_fsr fs_fsr
-#define fpu_fr fs_regs
-#define Fpu_fsr fs_fsr
-#define FPU_FSR_TYPE int
-
-#define PTRACE_GETREGS PT_GETREGS
-#define PTRACE_GETFPREGS PT_GETFPREGS
-#define PTRACE_SETREGS PT_SETREGS
-#define PTRACE_SETFPREGS PT_SETFPREGS
-
-#define GDB_GREGSET_T struct reg
-#define GDB_FPREGSET_T struct fpreg
-
#endif /* NM_NBSD_H */
diff --git a/gdb/config/sparc/tm-nbsd.h b/gdb/config/sparc/tm-nbsd.h
index 289e705..bd98450 100644
--- a/gdb/config/sparc/tm-nbsd.h
+++ b/gdb/config/sparc/tm-nbsd.h
@@ -1,5 +1,5 @@
/* Macro definitions for Sparc running under NetBSD.
- Copyright 1994 Free Software Foundation, Inc.
+ Copyright 1994, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -21,6 +21,9 @@
#ifndef TM_NBSD_H
#define TM_NBSD_H
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
#include "sparc/tm-sparc.h"
+#include "solib.h"
#endif /* TM_NBSD_H */
diff --git a/gdb/config/sparc/xm-nbsd.h b/gdb/config/sparc/tm-nbsd64.h
index e469aab..cc1d6b3 100644
--- a/gdb/config/sparc/xm-nbsd.h
+++ b/gdb/config/sparc/tm-nbsd64.h
@@ -1,5 +1,5 @@
-/* Parameters for execution on a Sparc running NetBSD, for GDB.
- Copyright 1994 Free Software Foundation, Inc.
+/* Macro definitions for UltraSPARC running under NetBSD.
+ Copyright 1994, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -18,5 +18,10 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* Get generic NetBSD host definitions. */
-#include "xm-nbsd.h"
+#ifndef TM_NBSD64_H
+#define TM_NBSD64_H
+
+#include "sparc/tm-sp64.h" /* sets GDB_MULTI_ARCH */
+#include "solib.h"
+
+#endif /* TM_NBSD64_H */
diff --git a/gdb/config/sparc/tm-nbsdaout.h b/gdb/config/sparc/tm-nbsdaout.h
deleted file mode 100644
index a62e535..0000000
--- a/gdb/config/sparc/tm-nbsdaout.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Macro definitions for Sparc running under NetBSD.
- Copyright 1994, 2002 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. */
-
-#ifndef TM_NBSDAOUT_H
-#define TM_NBSDAOUT_H
-
-#include "sparc/tm-nbsd.h"
-
-/* Return non-zero if we are in a shared library trampoline code stub. */
-#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
- (name && !strcmp(name, "_DYNAMIC"))
-
-#endif /* TM_NBSDAOUT_H */