diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1994-09-23 22:30:31 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1994-09-23 22:30:31 +0000 |
commit | 84f652b150d70b36b704182702ee8de5950b0a82 (patch) | |
tree | 9d4e4befd4f679a057656cd1f9e022510067329c /gdb/config/ns32k/tm-nbsd.h | |
parent | 4d61cba98770961e820bdc8e1ea4025ebebb5018 (diff) | |
download | gdb-84f652b150d70b36b704182702ee8de5950b0a82.zip gdb-84f652b150d70b36b704182702ee8de5950b0a82.tar.gz gdb-84f652b150d70b36b704182702ee8de5950b0a82.tar.bz2 |
* solib.c: *BSD systems need <a.out.h> to be included before
<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.
Diffstat (limited to 'gdb/config/ns32k/tm-nbsd.h')
-rw-r--r-- | gdb/config/ns32k/tm-nbsd.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gdb/config/ns32k/tm-nbsd.h b/gdb/config/ns32k/tm-nbsd.h new file mode 100644 index 0000000..871a153 --- /dev/null +++ b/gdb/config/ns32k/tm-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)) \ + ) |