aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-08-21 20:38:46 +0000
committerMark Kettenis <kettenis@gnu.org>2003-08-21 20:38:46 +0000
commit8b39fe56a2250e7fc4e8327dc705789e0290c260 (patch)
tree85035ad13d8bf804e7ca0fb4e7f81e7176790e5e /gdb/config
parenta7f19c79e30b6e4e83353605341abdccc29d27b4 (diff)
downloadgdb-8b39fe56a2250e7fc4e8327dc705789e0290c260.zip
gdb-8b39fe56a2250e7fc4e8327dc705789e0290c260.tar.gz
gdb-8b39fe56a2250e7fc4e8327dc705789e0290c260.tar.bz2
Rewrite FreeBSD/sparc64 native configuration.
* sparcbsd-nat.c, sparcbsd-nat.h: New files. * sparc64fbsd-nat.c: New file. * sparc64fbsd-tdep.c: New file. * sparc64-tdep.c sparc64-tdep.h: New files. * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o, sparc64fbsd-tdep.o): New dependencies. (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c and sparc64fbsd-tdep.c. (sparc64_tdep_h, sparcbsd_nat_h): New variables. * config/sparc/fbsd.mh: Remove copyright notice. (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and sparcbsd-nat.o. * config/sparc/fbsd.mt: Remove copyright notice. (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o, solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o. * config/sparc/nm-fbsd.h: Don't include "elf/common.h". (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T, regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu, fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines. * config/sparc/tm-fbsd.h: Don't include "solib.h" and "sparc/tm-sp64.h". (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines. (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/sparc/fbsd.mh22
-rw-r--r--gdb/config/sparc/fbsd.mt22
-rw-r--r--gdb/config/sparc/nm-fbsd.h36
-rw-r--r--gdb/config/sparc/tm-fbsd.h15
4 files changed, 10 insertions, 85 deletions
diff --git a/gdb/config/sparc/fbsd.mh b/gdb/config/sparc/fbsd.mh
index 33c6dc7..27942f8 100644
--- a/gdb/config/sparc/fbsd.mh
+++ b/gdb/config/sparc/fbsd.mh
@@ -1,25 +1,5 @@
-# Host-dependent settings for FreeBSD/sparc64.
-# Copyright 2002 Free Software Foundation, Inc.
-# Contributed by David E. O'Brien <obrien@FreeBSD.org>.
-#
-# 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
# Host: FreeBSD/sparc64
-NATDEPFILES= sparc-nat.o \
+NATDEPFILES= sparc64fbsd-nat.o sparcbsd-nat.o \
corelow.o fork-child.o infptrace.o inftarg.o \
solib.o solib-svr4.o solib-legacy.o
NAT_FILE= nm-fbsd.h
diff --git a/gdb/config/sparc/fbsd.mt b/gdb/config/sparc/fbsd.mt
index 317c290..20c7f1c 100644
--- a/gdb/config/sparc/fbsd.mt
+++ b/gdb/config/sparc/fbsd.mt
@@ -1,23 +1,3 @@
-# Target-dependent settings for FreeBSD/sparc64.
-# Copyright 2002 Free Software Foundation, Inc.
-# Contributed by David E. O'Brien <obrien@FreeBSD.org>.
-#
-# 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
# Target: FreeBSD/sparc64
-TDEPFILES= sparc-tdep.o solib.o solib-svr4.o solib-legacy.o
+TDEPFILES= sparc64-tdep.o sparc64fbsd-tdep.o
TM_FILE= tm-fbsd.h
diff --git a/gdb/config/sparc/nm-fbsd.h b/gdb/config/sparc/nm-fbsd.h
index 87b9622..917cc49 100644
--- a/gdb/config/sparc/nm-fbsd.h
+++ b/gdb/config/sparc/nm-fbsd.h
@@ -1,6 +1,6 @@
/* Native-dependent definitions for FreeBSD/sparc64.
- Copyright 2002
- Free Software Foundation, Inc.
+
+ Copyright 2002, 2003 Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org>.
This file is part of GDB.
@@ -34,34 +34,6 @@
/* Shared library support. */
-#define SVR4_SHARED_LIBS
-
-#include "solib.h" /* Support for shared libraries. */
-#include "elf/common.h" /* Additional ELF shared library info. */
-
-/* Make things match up with what is expected in sparc-nat.c. */
-
-#define PTRACE_GETREGS PT_GETREGS
-#define PTRACE_SETREGS PT_SETREGS
-#define PTRACE_GETFPREGS PT_GETFPREGS
-#define PTRACE_SETFPREGS PT_SETFPREGS
-
-#define GDB_GREGSET_T struct reg
-#define GDB_FPREGSET_T struct fpreg
-
-#define regs trapframe
-#define r_g1 tf_global[1]
-#define r_ps tf_tstate
-#define r_pc tf_tpc
-#define r_npc tf_tnpc
-#define r_y tf_y
-
-#define FPU_FSR_TYPE unsigned long
-#define fp_status fpreg /* our reg.h */
-#define fpu fpreg /* our reg.h */
-#define fpu_regs fr_regs /* one field of fpu_fr on Solaris */
-#define fpu_fr fr_regs /* a union w/in struct fpu on Solaris */
-#define fpu_fsr fr_fsr
-#define Fpu_fsr fr_fsr
+#include "solib.h"
-#endif /* NM_FBSD_H */
+#endif /* nm-fbsd.h */
diff --git a/gdb/config/sparc/tm-fbsd.h b/gdb/config/sparc/tm-fbsd.h
index c84dfc4..f441937 100644
--- a/gdb/config/sparc/tm-fbsd.h
+++ b/gdb/config/sparc/tm-fbsd.h
@@ -1,5 +1,6 @@
/* Target-dependent definitions for FreeBSD/sparc64.
- Copyright 2002 Free Software Foundation, Inc.
+
+ Copyright 2002, 2003 Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org>.
This file is part of GDB.
@@ -21,14 +22,6 @@
#ifndef TM_FBSD_H
#define TM_FBSD_H
-#define SVR4_SHARED_LIBS
-#include "solib.h" /* Support for shared libraries. */
-#include "sparc/tm-sp64.h"
-
-/* Number of traps that happen between exec'ing the shell to run an
- inferior, and when we finally get to the inferior code. The
- default is right for FreeBSD. */
-
-#undef START_INFERIOR_TRAPS_EXPECTED
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_TM
-#endif /* TM_FBSD_H */
+#endif /* tm-fbsd.h */