aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-07-13 16:15:59 +0000
committerMark Kettenis <kettenis@gnu.org>2003-07-13 16:15:59 +0000
commit68cc0bfb7dd8503a99124c6fe752a0df8ddfe4ed (patch)
tree0dd3440a4dbcc3a9305728cb29f248776525d30d /gdb/config
parent974b2f82b189e660da0955b3b0fd714a8268daff (diff)
downloadgdb-68cc0bfb7dd8503a99124c6fe752a0df8ddfe4ed.zip
gdb-68cc0bfb7dd8503a99124c6fe752a0df8ddfe4ed.tar.gz
gdb-68cc0bfb7dd8503a99124c6fe752a0df8ddfe4ed.tar.bz2
* configure.host: Add x86_64-*-freebsd*.
* configure.tgt: Add x86_64-*-freebsd*. * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets. * amd64fbsd-nat.c: New file. * amd64fbsd-tdep.c: New file. * config/i386/nm-fbsd64.h: New file. * config/i386/fbsd64.mh: New file. * config/i386/fbsd64.mt: New file.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/i386/fbsd64.mh7
-rw-r--r--gdb/config/i386/fbsd64.mt2
-rw-r--r--gdb/config/i386/nm-fbsd64.h42
3 files changed, 51 insertions, 0 deletions
diff --git a/gdb/config/i386/fbsd64.mh b/gdb/config/i386/fbsd64.mh
new file mode 100644
index 0000000..a1a79a3
--- /dev/null
+++ b/gdb/config/i386/fbsd64.mh
@@ -0,0 +1,7 @@
+# Host: FreeBSD/amd64
+
+XM_FILE= xm-i386.h
+
+NAT_FILE= nm-fbsd64.h
+# NOTE: Do not spread NATDEPFILES over several lines - it hurts BSD make.
+NATDEPFILES= fork-child.o infptrace.o inftarg.o solib.o solib-svr4.o solib-legacy.o corelow.o core-regset.o amd64fbsd-nat.o gcore.o fbsd-proc.o
diff --git a/gdb/config/i386/fbsd64.mt b/gdb/config/i386/fbsd64.mt
new file mode 100644
index 0000000..ae4fe98
--- /dev/null
+++ b/gdb/config/i386/fbsd64.mt
@@ -0,0 +1,2 @@
+# Target: FreeBSD/amd64
+TDEPFILES= x86-64-tdep.o amd64fbsd-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o
diff --git a/gdb/config/i386/nm-fbsd64.h b/gdb/config/i386/nm-fbsd64.h
new file mode 100644
index 0000000..e5b66df
--- /dev/null
+++ b/gdb/config/i386/nm-fbsd64.h
@@ -0,0 +1,42 @@
+/* Native-dependent definitions for FreeBSD/amd64.
+ Copyright 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. */
+
+#ifndef NM_FBSD64_H
+#define NM_FBSD64_H
+
+/* Type of the third argument to the `ptrace' system call. */
+#define PTRACE_ARG3_TYPE caddr_t
+
+/* Override copies of {fetch,store}_inferior_registers in `infptrace.c'. */
+#define FETCH_INFERIOR_REGISTERS
+
+/* Override child_pid_to_exec_file in 'inftarg.c'. */
+#define CHILD_PID_TO_EXEC_FILE
+
+/* We can attach and detach. */
+#define ATTACH_DETACH
+
+
+/* Shared library support. */
+
+#include "solib.h"
+
+#endif /* nm-fbsd64.h */