aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-08-25 00:55:39 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-08-25 00:55:39 +0000
commit6b13c79c6dee3a5824047219ca44ca15ef77a141 (patch)
tree9e67e0e99aaa02f98d582f4adfdd2ab01aa3be00 /gdb/config
parent74d319e092340980371a44da38e7172fc88c6fd7 (diff)
downloadgdb-6b13c79c6dee3a5824047219ca44ca15ef77a141.zip
gdb-6b13c79c6dee3a5824047219ca44ca15ef77a141.tar.gz
gdb-6b13c79c6dee3a5824047219ca44ca15ef77a141.tar.bz2
* config/xm-nbsd.h: New file, support for all NetBSD ports.
* config/sparc/{nm-sparcnbsd.h,tm-sparcnbsd.h,xm-sparcnbsd.h}: New files, support for NetBSD/sparc. * configure.in: Add sparc-*-netbsd target.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/sparc/.Sanitize3
-rw-r--r--gdb/config/sparc/nm-sparcnbsd.h38
-rw-r--r--gdb/config/sparc/tm-sparcnbsd.h29
-rw-r--r--gdb/config/sparc/xm-sparcnbsd.h27
4 files changed, 97 insertions, 0 deletions
diff --git a/gdb/config/sparc/.Sanitize b/gdb/config/sparc/.Sanitize
index 8213c4b..a96ebb4 100644
--- a/gdb/config/sparc/.Sanitize
+++ b/gdb/config/sparc/.Sanitize
@@ -24,6 +24,7 @@ Do-first:
Things-to-keep:
nm-sparclynx.h
+nm-sparcnbsd.h
nm-sun4os4.h
sp64.mt
sp64sim.mt
@@ -40,6 +41,7 @@ tm-sp64sim.h
tm-sparc.h
tm-sparclite.h
tm-sparclynx.h
+tm-sparcnbsd.h
tm-spc-em.h
tm-sun4os4.h
tm-sun4sol2.h
@@ -47,6 +49,7 @@ tm-vxsparc.h
vxsparc.mt
xm-sparc.h
xm-sparclynx.h
+xm-sparcnbsd.h
xm-sun4os4.h
xm-sun4sol2.h
diff --git a/gdb/config/sparc/nm-sparcnbsd.h b/gdb/config/sparc/nm-sparcnbsd.h
new file mode 100644
index 0000000..73dda3f
--- /dev/null
+++ b/gdb/config/sparc/nm-sparcnbsd.h
@@ -0,0 +1,38 @@
+/* Native-dependent definitions for Sparc running NetBSD Unix, for GDB.
+ Copyright 1986, 1987, 1989, 1992 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ $Id$
+*/
+
+#ifndef NM_SPARCNBSD_H
+#define NM_SPARCNBSD_H
+
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+
+#include <machine/vmparam.h>
+#define KERNEL_U_ADDR USRSTACK
+
+#define PTRACE_ARG3_TYPE char*
+
+#define ATTACH_DETACH
+
+#define FETCH_INFERIOR_REGISTERS
+
+#endif /* NM_SPARCNBSD_H */
diff --git a/gdb/config/sparc/tm-sparcnbsd.h b/gdb/config/sparc/tm-sparcnbsd.h
new file mode 100644
index 0000000..6d4e649
--- /dev/null
+++ b/gdb/config/sparc/tm-sparcnbsd.h
@@ -0,0 +1,29 @@
+/* Macro definitions for Sparc running under NetBSD.
+ Copyright 1994 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#ifndef TM_SPARCNBSD_H
+#define TM_SPARCNBSD_H
+
+/* Use generic Sparc definitions. */
+#include "tm-sparc.h"
+
+/* Shared library code */
+#include "solib.h"
+
+#endif /* TM_SPARCNBSD_H */
diff --git a/gdb/config/sparc/xm-sparcnbsd.h b/gdb/config/sparc/xm-sparcnbsd.h
new file mode 100644
index 0000000..361448c
--- /dev/null
+++ b/gdb/config/sparc/xm-sparcnbsd.h
@@ -0,0 +1,27 @@
+/* Parameters for execution on a Sparc running NetBSD, for GDB.
+ Copyright 1994 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ $Id$
+*/
+
+/* Get generic NetBSD host definitions. */
+#include "xm-nbsd.h"
+
+/* Before storing, we need to read all the registers. */
+#define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES)