diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-22 11:56:37 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-22 11:56:37 +0000 |
commit | 54f47fb11e6bd0e3688210596a6ceddf40627226 (patch) | |
tree | ee27f7a7891805f8f058c138fce402e9c2ccb495 /gnu/usr.bin/binutils | |
parent | 9829b1b4ae554ebeee4d394192317bbf33fdb8ec (diff) |
Add rudimentary config files for architectures that still use the old gdb
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/i386/tm-obsd.h | 42 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/i386/xm-obsd.h | 21 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/m68k/nm-obsd.h | 21 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/m68k/tm-obsd.h | 41 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/m68k/xm-obsd.h | 21 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/nm-obsd.h | 86 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/ns32k/nm-obsd.h | 36 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mh | 4 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mt | 3 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/ns32k/tm-obsd.h | 41 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/ns32k/xm-obsd.h | 21 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd.h | 57 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/obsd.mh | 6 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/tm-obsd.h | 27 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/xm-obsd.h | 21 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/tm-obsd.h | 19 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/xm-obsd.h | 32 |
17 files changed, 499 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/config/i386/tm-obsd.h b/gnu/usr.bin/binutils/gdb/config/i386/tm-obsd.h new file mode 100644 index 00000000000..b2212c5db99 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/i386/tm-obsd.h @@ -0,0 +1,42 @@ +/* Macro definitions for i386 running under OpenBSD. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef TM_OBSD_H +#define TM_OBSD_H + +#include "i386/tm-i386bsd.h" +#include "tm-obsd.h" + +#undef NUM_REGS +#define NUM_REGS 16 + +#define JB_ELEMENT_SIZE sizeof(int) /* jmp_buf[_JBLEN] is array of ints */ +#define JB_PC 0 /* Setjmp()'s return PC saved here */ + +/* Figure out where the longjmp will land. Slurp the args out of the stack. + We expect the first arg to be a pointer to the jmp_buf structure from which + we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. + This routine returns true on success */ + +extern int +get_longjmp_target PARAMS ((CORE_ADDR *)); + +#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) + +#endif /* TM_NBSD_H */ diff --git a/gnu/usr.bin/binutils/gdb/config/i386/xm-obsd.h b/gnu/usr.bin/binutils/gdb/config/i386/xm-obsd.h new file mode 100644 index 00000000000..832e4f330cd --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/i386/xm-obsd.h @@ -0,0 +1,21 @@ +/* Parameters for execution on a i386 running OpenBSD, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Get generic OpenBSD host definitions. */ +#include "xm-obsd.h" diff --git a/gnu/usr.bin/binutils/gdb/config/m68k/nm-obsd.h b/gnu/usr.bin/binutils/gdb/config/m68k/nm-obsd.h new file mode 100644 index 00000000000..61e5e8b489c --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/m68k/nm-obsd.h @@ -0,0 +1,21 @@ +/* Native-dependent definitions for Motorola m68k running OpenBSD, for GDB. + Copyright 1996 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Get generic OpenBSD native definitions. */ +#include "nm-obsd.h" diff --git a/gnu/usr.bin/binutils/gdb/config/m68k/tm-obsd.h b/gnu/usr.bin/binutils/gdb/config/m68k/tm-obsd.h new file mode 100644 index 00000000000..f24e530edc1 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/m68k/tm-obsd.h @@ -0,0 +1,41 @@ +/* Macro definitions for i386 running under OpenBSD. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef TM_OBSD_H +#define TM_OBSD_H + +#include <sys/param.h> +#include <machine/vmparam.h> + +/* Define BPT_VECTOR if it is different than the default. + This is the vector number used by traps to indicate a breakpoint. */ + +#define BPT_VECTOR 0x2 + +/* Address of end of stack space. */ +#define STACK_END_ADDR USRSTACK + +/* For OpenBSD, sigtramp is 32 bytes before STACK_END_ADDR. */ +#define SIGTRAMP_START(pc) (STACK_END_ADDR - 32) +#define SIGTRAMP_END(pc) (STACK_END_ADDR) + +#include "m68k/tm-m68k.h" +#include "tm-obsd.h" + +#endif /* TM_OBSD_H */ diff --git a/gnu/usr.bin/binutils/gdb/config/m68k/xm-obsd.h b/gnu/usr.bin/binutils/gdb/config/m68k/xm-obsd.h new file mode 100644 index 00000000000..46e1792a5ed --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/m68k/xm-obsd.h @@ -0,0 +1,21 @@ +/* Parameters for execution on a Motorola m68k running OpenBSD, for GDB. + Copyright 1996 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Get generic OpenBSD host definitions. */ +#include "xm-obsd.h" diff --git a/gnu/usr.bin/binutils/gdb/config/nm-obsd.h b/gnu/usr.bin/binutils/gdb/config/nm-obsd.h new file mode 100644 index 00000000000..f0c91965eca --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/nm-obsd.h @@ -0,0 +1,86 @@ +/* Native-dependent definitions for OpenBSD. + Copyright 1994, 1996 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* 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 FETCH_INFERIOR_REGISTERS + +#define ATTACH_DETACH + +#include "solib.h" /* Support for shared libraries. */ + +/* make structure definitions match up with those expected in solib.c */ +#define link_object sod +#define lo_name sod_name +#define lo_library sod_library +#define lo_unused sod_reserved +#define lo_major sod_major +#define lo_minor sod_minor +#define lo_next sod_next + +#define link_map so_map +#define lm_addr som_addr +#define lm_name som_path +#define lm_next som_next +#define lm_lop som_sod +#define lm_lob som_sodbase +#define lm_rwt som_write +#define lm_ld som_dynamic +#define lm_lpd som_spd + +#define link_dynamic_2 section_dispatch_table +#define ld_loaded sdt_loaded +#define ld_need sdt_sods +#define ld_rules sdt_filler1 +#define ld_got sdt_got +#define ld_plt sdt_plt +#define ld_rel sdt_rel +#define ld_hash sdt_hash +#define ld_stab sdt_nzlist +#define ld_stab_hash sdt_filler2 +#define ld_buckets sdt_buckets +#define ld_symbols sdt_strings +#define ld_symb_size sdt_str_sz +#define ld_text sdt_text_sz +#define ld_plt_sz sdt_plt_sz + +#define rtc_symb rt_symbol +#define rtc_sp rt_sp +#define rtc_next rt_next + +#define ld_debug so_debug +#define ldd_version dd_version +#define ldd_in_debugger dd_in_debugger +#define ldd_sym_loaded dd_sym_loaded +#define ldd_bp_addr dd_bpt_addr +#define ldd_bp_inst dd_bpt_shadow +#define ldd_cp dd_cc + +#define link_dynamic _dynamic +#define ld_version d_version +#define ldd d_debug +#define ld_un d_un +#define ld_2 d_sdt diff --git a/gnu/usr.bin/binutils/gdb/config/ns32k/nm-obsd.h b/gnu/usr.bin/binutils/gdb/config/ns32k/nm-obsd.h new file mode 100644 index 00000000000..97bd9c0bafe --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/ns32k/nm-obsd.h @@ -0,0 +1,36 @@ +/* Native-dependent definitions for ns32k running OpenBSD, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef NM_OBSD_H +#define NM_OBSD_H + +/* Get generic OpenBSD native definitions. */ +#include "nm-obsd.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_OBSD_H */ diff --git a/gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mh b/gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mh new file mode 100644 index 00000000000..479e675ea89 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mh @@ -0,0 +1,4 @@ +# Host: PC532 running OpenBSD +XM_FILE= xm-obsd.h +NAT_FILE= nm-obsd.h +NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o ns32k-nat.o solib.o diff --git a/gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mt b/gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mt new file mode 100644 index 00000000000..684b146fc62 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/ns32k/obsd.mt @@ -0,0 +1,3 @@ +# Target: PC532 running OpenBSD +TDEPFILES= ns32k-tdep.o +TM_FILE= tm-obsd.h diff --git a/gnu/usr.bin/binutils/gdb/config/ns32k/tm-obsd.h b/gnu/usr.bin/binutils/gdb/config/ns32k/tm-obsd.h new file mode 100644 index 00000000000..41fdb88db3d --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/ns32k/tm-obsd.h @@ -0,0 +1,41 @@ +/* Macro definitions for ns32k running under OpenBSD. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Override number of expected traps from sysv. */ +#define START_INFERIOR_TRAPS_EXPECTED 2 + +/* Most definitions from umax could be used. */ + +#include "ns32k/tm-umax.h" + +/* Generic OpenBSD definitions. */ + +#include "tm-obsd.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/gnu/usr.bin/binutils/gdb/config/ns32k/xm-obsd.h b/gnu/usr.bin/binutils/gdb/config/ns32k/xm-obsd.h new file mode 100644 index 00000000000..3102393270b --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/ns32k/xm-obsd.h @@ -0,0 +1,21 @@ +/* Parameters for execution on a ns32k running OpenBSD, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Get generic OpenBSD host definitions. */ +#include "xm-obsd.h" diff --git a/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd.h b/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd.h new file mode 100644 index 00000000000..a6330ef39cb --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd.h @@ -0,0 +1,57 @@ +/* Native-dependent definitions for Sparc running OpenBSD, for GDB. + Copyright (C) 1986, 1987, 1989, 1992, 1995, 1996 + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef NM_OBSD_H +#define NM_OBSD_H + +/* Get generic OpenBSD native definitions. */ + +#include "nm-obsd.h" + +#define FETCH_INFERIOR_REGISTERS + +/* Before storing, we need to read all the registers. */ + +#define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES) + +/* Make things match up with what is expected in sparc-nat.c. */ + +#define regs trapframe +#define fp_status fpstate + +#define r_g1 tf_global[1] +#define r_ps tf_psr +#define r_pc tf_pc +#define r_npc tf_npc +#define r_y tf_y + +#define fpu fpstate +#define fpu_regs fs_regs +#define fpu_fsr fs_fsr +#define fpu_fr fs_regs +#define Fpu_fsr fs_fsr +#define FPU_FSR_TYPE int + +#define PTRACE_GETREGS PT_GETREGS +#define PTRACE_GETFPREGS PT_GETFPREGS +#define PTRACE_SETREGS PT_SETREGS +#define PTRACE_SETFPREGS PT_SETFPREGS + +#endif /* NM_OBSD_H */ diff --git a/gnu/usr.bin/binutils/gdb/config/sparc/obsd.mh b/gnu/usr.bin/binutils/gdb/config/sparc/obsd.mh new file mode 100644 index 00000000000..963a4470493 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/sparc/obsd.mh @@ -0,0 +1,6 @@ +# Host: Sun 4 or Sparcstation, running OpenBSD +XDEPFILES= ser-tcp.o +XM_FILE= xm-obsd.h +NAT_FILE= nm-obsd.h +NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o solib.o +HOST_IPC=-DBSD_IPC diff --git a/gnu/usr.bin/binutils/gdb/config/sparc/tm-obsd.h b/gnu/usr.bin/binutils/gdb/config/sparc/tm-obsd.h new file mode 100644 index 00000000000..85afa92dfdb --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/sparc/tm-obsd.h @@ -0,0 +1,27 @@ +/* Macro definitions for Sparc running under OpenBSD. + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef TM_OBSD_H +#define TM_OBSD_H + +#include "sparc/tm-sparc.h" + +#include "tm-obsd.h" + +#endif /* TM_OBSD_H */ diff --git a/gnu/usr.bin/binutils/gdb/config/sparc/xm-obsd.h b/gnu/usr.bin/binutils/gdb/config/sparc/xm-obsd.h new file mode 100644 index 00000000000..d09c4bdbebc --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/sparc/xm-obsd.h @@ -0,0 +1,21 @@ +/* Parameters for execution on a Sparc running OpenBSD, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Get generic OpenBSD host definitions. */ +#include "xm-obsd.h" diff --git a/gnu/usr.bin/binutils/gdb/config/tm-obsd.h b/gnu/usr.bin/binutils/gdb/config/tm-obsd.h new file mode 100644 index 00000000000..d386e5a5dc9 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/tm-obsd.h @@ -0,0 +1,19 @@ +/* Target machine sub-description for OpenBSD. + This is included by other tm-*.h files to specify OpenBSD-specific stuff. + Copyright 1993, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ diff --git a/gnu/usr.bin/binutils/gdb/config/xm-obsd.h b/gnu/usr.bin/binutils/gdb/config/xm-obsd.h new file mode 100644 index 00000000000..f04e9322f49 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/xm-obsd.h @@ -0,0 +1,32 @@ +/* Host-dependent definitions for any CPU running OpenBSD. + Copyright 1993, 1994, 1996 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* We have to include these files now, so that GDB will not make + competing definitions in defs.h. */ +#include <limits.h> + +#include <machine/endian.h> +#if BYTE_ORDER == BIG_ENDIAN +#define HOST_BYTE_ORDER BIG_ENDIAN +#else +#define HOST_BYTE_ORDER LITTLE_ENDIAN +#endif + +/* OpenBSD has termios facilities. */ +#define HAVE_TERMIOS |