diff options
author | Mark Kettenis <kettenis@gnu.org> | 2014-02-12 12:08:28 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2014-02-12 12:08:28 +0100 |
commit | 93ffa5b939aef24f7530a8a400f877bfb24f0a73 (patch) | |
tree | 85d703faf68dc1db3d2b1d939c08ff61dd2b69ed /gdb/amd64obsd-tdep.c | |
parent | 6fb526eee4244d591705cf90016390f12949bcc2 (diff) | |
download | gdb-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/amd64obsd-tdep.c')
-rw-r--r-- | gdb/amd64obsd-tdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/amd64obsd-tdep.c b/gdb/amd64obsd-tdep.c index d9cea9c..9446318 100644 --- a/gdb/amd64obsd-tdep.c +++ b/gdb/amd64obsd-tdep.c @@ -32,6 +32,7 @@ #include "gdb_assert.h" #include <string.h> +#include "obsd-tdep.h" #include "amd64-tdep.h" #include "i387-tdep.h" #include "solib-svr4.h" @@ -459,6 +460,7 @@ amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); amd64_init_abi (info, gdbarch); + obsd_init_abi (info, gdbarch); /* Initialize general-purpose register set details. */ tdep->gregset_reg_offset = amd64obsd_r_reg_offset; |