diff options
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/.Sanitize | 1 | ||||
-rw-r--r-- | gdb/config/i386/.Sanitize | 4 | ||||
-rw-r--r-- | gdb/config/i386/nbsd.mh | 7 | ||||
-rw-r--r-- | gdb/config/i386/nm-nbsd.h | 34 | ||||
-rw-r--r-- | gdb/config/i386/tm-nbsd.h | 26 | ||||
-rw-r--r-- | gdb/config/i386/xm-nbsd.h | 21 | ||||
-rw-r--r-- | gdb/config/ns32k/.Sanitize | 6 | ||||
-rw-r--r-- | gdb/config/ns32k/nbsd.mh | 4 | ||||
-rw-r--r-- | gdb/config/ns32k/nbsd.mt | 3 | ||||
-rw-r--r-- | gdb/config/ns32k/nm-nbsd.h | 36 | ||||
-rw-r--r-- | gdb/config/ns32k/tm-nbsd.h | 38 | ||||
-rw-r--r-- | gdb/config/ns32k/xm-nbsd.h | 21 | ||||
-rw-r--r-- | gdb/config/sparc/nm-nbsd.h | 11 |
13 files changed, 202 insertions, 10 deletions
diff --git a/gdb/config/.Sanitize b/gdb/config/.Sanitize index c8eb93d..27a7a3c3 100644 --- a/gdb/config/.Sanitize +++ b/gdb/config/.Sanitize @@ -38,6 +38,7 @@ mips nm-empty.h nm-lynx.h nm-m3.h +nm-nbsd.h nm-sysv4.h none ns32k diff --git a/gdb/config/i386/.Sanitize b/gdb/config/i386/.Sanitize index ad05928..5c2f3a7 100644 --- a/gdb/config/i386/.Sanitize +++ b/gdb/config/i386/.Sanitize @@ -50,6 +50,8 @@ i386v4.mh i386v4.mt linux.mh linux.mt +nbsd.mh +nbsd.mt ncr3000.mh ncr3000.mt nm-i386aix.h @@ -83,6 +85,7 @@ tm-i386os9k.h tm-i386v.h tm-i386v4.h tm-linux.h +tm-nbsd.h tm-ptx.h tm-ptx4.h tm-sun386.h @@ -99,6 +102,7 @@ xm-i386v.h xm-i386v32.h xm-i386v4.h xm-linux.h +xm-nbsd.h xm-ptx.h xm-ptx4.h xm-sun386.h diff --git a/gdb/config/i386/nbsd.mh b/gdb/config/i386/nbsd.mh new file mode 100644 index 0000000..0a3cfca --- /dev/null +++ b/gdb/config/i386/nbsd.mh @@ -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 diff --git a/gdb/config/i386/nm-nbsd.h b/gdb/config/i386/nm-nbsd.h new file mode 100644 index 0000000..44257d6 --- /dev/null +++ b/gdb/config/i386/nm-nbsd.h @@ -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 */ diff --git a/gdb/config/i386/tm-nbsd.h b/gdb/config/i386/tm-nbsd.h new file mode 100644 index 0000000..7cb2b87 --- /dev/null +++ b/gdb/config/i386/tm-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 */ diff --git a/gdb/config/i386/xm-nbsd.h b/gdb/config/i386/xm-nbsd.h new file mode 100644 index 0000000..5ba6700 --- /dev/null +++ b/gdb/config/i386/xm-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" diff --git a/gdb/config/ns32k/.Sanitize b/gdb/config/ns32k/.Sanitize index 69b0407..7ae6862 100644 --- a/gdb/config/ns32k/.Sanitize +++ b/gdb/config/ns32k/.Sanitize @@ -23,21 +23,25 @@ Things-to-keep: merlin.mh merlin.mt +nbsd.mh +nbsd.mt +nm-nbsd.h nm-umax.h ns32km3.mh ns32km3.mt tm-merlin.h +tm-nbsd.h tm-ns32km3.h tm-umax.h umax.mh umax.mt xm-merlin.h +xm-nbsd.h xm-ns32km3.h xm-umax.h Things-to-lose: - Do-last: # End of file. diff --git a/gdb/config/ns32k/nbsd.mh b/gdb/config/ns32k/nbsd.mh new file mode 100644 index 0000000..f9cc72a --- /dev/null +++ b/gdb/config/ns32k/nbsd.mh @@ -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 diff --git a/gdb/config/ns32k/nbsd.mt b/gdb/config/ns32k/nbsd.mt new file mode 100644 index 0000000..0a18632 --- /dev/null +++ b/gdb/config/ns32k/nbsd.mt @@ -0,0 +1,3 @@ +# Target: PC532 running NetBSD +TDEPFILES= exec.o ns32k-tdep.o ns32k-pinsn.o solib.o +TM_FILE= tm-nbsd.h diff --git a/gdb/config/ns32k/nm-nbsd.h b/gdb/config/ns32k/nm-nbsd.h new file mode 100644 index 0000000..d22218c --- /dev/null +++ b/gdb/config/ns32k/nm-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 */ 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)) \ + ) diff --git a/gdb/config/ns32k/xm-nbsd.h b/gdb/config/ns32k/xm-nbsd.h new file mode 100644 index 0000000..b601f0e --- /dev/null +++ b/gdb/config/ns32k/xm-nbsd.h @@ -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" diff --git a/gdb/config/sparc/nm-nbsd.h b/gdb/config/sparc/nm-nbsd.h index 83d918e..9116d1d 100644 --- a/gdb/config/sparc/nm-nbsd.h +++ b/gdb/config/sparc/nm-nbsd.h @@ -20,15 +20,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef NM_NBSD_H #define NM_NBSD_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 +/* Get generic NetBSD native definitions. */ +#include "nm-nbsd.h" #define FETCH_INFERIOR_REGISTERS |