summaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-10-20 11:54:40 +0000
committerMark Kettenis <kettenis@gnu.org>2002-10-20 11:54:40 +0000
commit67c64671dddae97d17d1f7b587c3a6ba19c1da15 (patch)
treefcec0ab0b7fb76953a4a3f67b0eba909589604d4 /gdb/i386bsd-nat.c
parentfd32280b53778da05fd5a5f9ad9f947459a832a4 (diff)
downloadgdb-67c64671dddae97d17d1f7b587c3a6ba19c1da15.tar.gz
* configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
* config/i386/obsd.mt: New file. * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce i386obsd_sc_pc_offset and i386obsd_sc_sp_offset; * i386obsd-nat.c (_initialize_i386obsd_nat): Set i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of i386nbsd_sigtramp_start and i386nbsd_sigtramp_end. * i386obsd-tdep.c: New file.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index 8a3acd4cf58..9e5b9a59e7a 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -400,11 +400,16 @@ _initialize_i386bsd_nat (void)
extern int i386fbsd4_sc_sp_offset;
#define SC_PC_OFFSET i386fbsd4_sc_pc_offset
#define SC_SP_OFFSET i386fbsd4_sc_sp_offset
-#elif defined (NetBSD) || defined (__NetBSD_Version__) || defined (OpenBSD)
+#elif defined (NetBSD) || defined (__NetBSD_Version__)
extern int i386nbsd_sc_pc_offset;
extern int i386nbsd_sc_sp_offset;
#define SC_PC_OFFSET i386nbsd_sc_pc_offset
#define SC_SP_OFFSET i386nbsd_sc_sp_offset
+#elif defined (OpenBSD)
+ extern int i386obsd_sc_pc_offset;
+ extern int i386obsd_sc_sp_offset;
+#define SC_PC_OFFSET i386obsd_sc_pc_offset
+#define SC_SP_OFFSET i386obsd_sc_sp_offset
#else
extern int i386bsd_sc_pc_offset;
extern int i386bsd_sc_sp_offset;