From 6b13c79c6dee3a5824047219ca44ca15ef77a141 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Thu, 25 Aug 1994 00:55:39 +0000 Subject: [PATCH] * 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. --- gdb/config/sparc/.Sanitize | 3 +++ gdb/config/sparc/nm-sparcnbsd.h | 38 +++++++++++++++++++++++++++++++++ gdb/config/sparc/tm-sparcnbsd.h | 29 +++++++++++++++++++++++++ gdb/config/sparc/xm-sparcnbsd.h | 27 +++++++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 gdb/config/sparc/nm-sparcnbsd.h create mode 100644 gdb/config/sparc/tm-sparcnbsd.h create mode 100644 gdb/config/sparc/xm-sparcnbsd.h diff --git a/gdb/config/sparc/.Sanitize b/gdb/config/sparc/.Sanitize index 8213c4bb821..a96ebb45977 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 00000000000..73dda3f1654 --- /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 +#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 00000000000..6d4e649890b --- /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 00000000000..361448c657f --- /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) -- 2.30.2