aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386obsd-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2014-02-12 12:08:28 +0100
committerMark Kettenis <kettenis@gnu.org>2014-02-12 12:08:28 +0100
commit93ffa5b939aef24f7530a8a400f877bfb24f0a73 (patch)
tree85d703faf68dc1db3d2b1d939c08ff61dd2b69ed /gdb/i386obsd-tdep.c
parent6fb526eee4244d591705cf90016390f12949bcc2 (diff)
downloadgdb-93ffa5b939aef24f7530a8a400f877bfb24f0a73.zip
gdb-93ffa5b939aef24f7530a8a400f877bfb24f0a73.tar.gz
gdb-93ffa5b939aef24f7530a8a400f877bfb24f0a73.tar.bz2
Add signal number conversions for OpenBSD.
gdb/ChangeLog: * obsd-tdep.h (obsd_init_abi): New prototype. * obsd-tdep.c: Define enum with OpenBSD signal numbers. (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target) (obsd_init_abi): New functions. * i386obsd-tdep.c: Include "obsd-tdep.h". (i386obsd_init_abi): Call obsd_init_abi. * amd64obsd-tdep.c: Include "obsd-tdep.h". (amd64obsd_init_abi): Call obsd_init_abi. * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add obsd-tdep.c to gdb_target_obs.
Diffstat (limited to 'gdb/i386obsd-tdep.c')
-rw-r--r--gdb/i386obsd-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/i386obsd-tdep.c b/gdb/i386obsd-tdep.c
index 9868b76..cf19c50 100644
--- a/gdb/i386obsd-tdep.c
+++ b/gdb/i386obsd-tdep.c
@@ -33,6 +33,7 @@
#include "gdb_assert.h"
#include <string.h>
+#include "obsd-tdep.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "solib-svr4.h"
@@ -447,6 +448,7 @@ i386obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Obviously OpenBSD is BSD-based. */
i386bsd_init_abi (info, gdbarch);
+ obsd_init_abi (info, gdbarch);
/* OpenBSD has a different `struct reg'. */
tdep->gregset_reg_offset = i386obsd_r_reg_offset;