Browse Source
<link.h>.
* i386b-nat.c: Add i386_float_info(), etc.
* config/i386/nm-nbsd.h: #define FLOAT_INFO.
* config/nm-nbsd.h: New file, for generic NetBSD native support.
* config/i386/nm-nbsd.h: Use it.
* config/sparc/nm-nbsd.h: Use it.
* config/ns32k/nm-nbsd.h: Use it.
* configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
(ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
* config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/i386.
* config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
New files, support for NetBSD/ns32k.
gdb-4_18-branch
16 changed files with 381 additions and 11 deletions
@ -0,0 +1,7 @@ |
|||
# Host: Intel 386 running NetBSD |
|||
XDEPFILES= |
|||
NATDEPFILES= exec.o fork-child.o infptrace.o inftarg.o corelow.o coredep.o i386b-nat.o |
|||
XM_FILE= xm-nbsd.h |
|||
NAT_FILE= nm-nbsd.h |
|||
REGEX=regex.o |
|||
REGEX1=regex.o |
|||
@ -0,0 +1,34 @@ |
|||
/* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
|
|||
Copyright 1986, 1987, 1989, 1992, 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 NM_NBSD_H |
|||
#define NM_NBSD_H |
|||
|
|||
/* Get generic NetBSD native definitions. */ |
|||
#include "nm-nbsd.h" |
|||
|
|||
#define FLOAT_INFO { i386_float_info(); } |
|||
|
|||
#define REGISTER_U_ADDR(addr, blockend, regno) \ |
|||
(addr) = i386_register_u_addr ((blockend),(regno)); |
|||
|
|||
extern int |
|||
i386_register_u_addr PARAMS ((int, int)); |
|||
|
|||
#endif /* NM_NBSD_H */ |
|||
@ -0,0 +1,26 @@ |
|||
/* 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_NBSD_H |
|||
#define TM_NBSD_H |
|||
|
|||
#include "i386/tm-i386bsd.h" |
|||
#include "tm-nbsd.h" |
|||
|
|||
#endif /* TM_NBSD_H */ |
|||
@ -0,0 +1,21 @@ |
|||
/* Parameters for execution on a i386 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. */ |
|||
|
|||
/* Get generic NetBSD host definitions. */ |
|||
#include "xm-nbsd.h" |
|||
@ -0,0 +1,4 @@ |
|||
# Host: PC532 running NetBSD |
|||
XM_FILE= xm-nbsd.h |
|||
NAT_FILE= nm-nbsd.h |
|||
NATDEPFILES= exec.o fork-child.o infptrace.o inftarg.o corelow.o coredep.o ns32k-nat.o |
|||
@ -0,0 +1,3 @@ |
|||
# Target: PC532 running NetBSD |
|||
TDEPFILES= exec.o ns32k-tdep.o ns32k-pinsn.o solib.o |
|||
TM_FILE= tm-nbsd.h |
|||
@ -0,0 +1,36 @@ |
|||
/* Native-dependent definitions for ns32k running NetBSD, for GDB.
|
|||
Copyright 1986, 1987, 1989, 1992, 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 NM_NBSD_H |
|||
#define NM_NBSD_H |
|||
|
|||
/* Get generic NetBSD native definitions. */ |
|||
#include "nm-nbsd.h" |
|||
|
|||
#if 0 |
|||
#define FLOAT_INFO { extern ns32k_float_info(); ns32k_float_info(); } |
|||
#endif |
|||
|
|||
#define REGISTER_U_ADDR(addr, blockend, regno) \ |
|||
(addr) = ns32k_register_u_addr ((blockend),(regno)); |
|||
|
|||
extern int |
|||
ns32k_register_u_addr PARAMS ((int, int)); |
|||
|
|||
#endif /* NM_NBSD_H */ |
|||
@ -0,0 +1,38 @@ |
|||
/* Macro definitions for ns32k running under NetBSD.
|
|||
Copyright 1986, 1987, 1989, 1991, 1992, 1993 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. */ |
|||
|
|||
/* Override number of expected traps from sysv. */ |
|||
#define START_INFERIOR_TRAPS_EXPECTED 2 |
|||
|
|||
/* Most definitions from umax could be used. */ |
|||
#define INVALID_FLOAT(p, s) isa_NAN(p, s) |
|||
#include "ns32k/tm-umax.h" |
|||
#include "tm-nbsd.h" |
|||
|
|||
/* Saved Pc. Get it from sigcontext if within sigtramp. */ |
|||
|
|||
/* Offset to saved PC in sigcontext, from <machine/signal.h>. */ |
|||
#define SIGCONTEXT_PC_OFFSET 20 |
|||
|
|||
#undef FRAME_SAVED_PC(FRAME) |
|||
#define FRAME_SAVED_PC(FRAME) \ |
|||
(((FRAME)->signal_handler_caller \ |
|||
? sigtramp_saved_pc (FRAME) \ |
|||
: read_memory_integer ((FRAME)->frame + 4, 4)) \ |
|||
) |
|||
@ -0,0 +1,21 @@ |
|||
/* Parameters for execution on a ns32k 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. */ |
|||
|
|||
/* Get generic NetBSD host definitions. */ |
|||
#include "xm-nbsd.h" |
|||
Loading…
Reference in new issue