* 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.
This commit is contained in:
J.T. Conklin 1994-08-25 00:55:39 +00:00
parent 74d319e092
commit 6b13c79c6d
4 changed files with 97 additions and 0 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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 */

View File

@ -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)