From 93ffa5b939aef24f7530a8a400f877bfb24f0a73 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 12 Feb 2014 12:08:28 +0100 Subject: 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. --- gdb/i386obsd-tdep.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/i386obsd-tdep.c') 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 +#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; -- cgit v1.1