Add signal number conversions for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Mon, 16 Mar 2020 18:02:22 +0000 (19:02 +0100)
committerKamil Rytarowski <n54@gmx.com>
Mon, 6 Apr 2020 16:26:59 +0000 (18:26 +0200)
commit797439622361bc901ed64b398c0d689c97cd8121
tree9d0df3cb0d3d6fb19ae3d5c754291d4784f1edab
parent8707c522016e68372b79d10eb3b74e0fc4b3e1b4
Add signal number conversions for NetBSD

gdb/ChangeLog:

* nbsd-tdep.c: Include "gdbarch.h".
Define enum with NetBSD signal numbers.
(nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
* alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
* amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
* arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
* hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
* i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
* mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
* ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
* sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
* sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
* sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
* vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
14 files changed:
gdb/ChangeLog
gdb/alpha-nbsd-tdep.c
gdb/amd64-nbsd-tdep.c
gdb/arm-nbsd-tdep.c
gdb/hppa-nbsd-tdep.c
gdb/i386-nbsd-tdep.c
gdb/mips-nbsd-tdep.c
gdb/nbsd-tdep.c
gdb/nbsd-tdep.h
gdb/ppc-nbsd-tdep.c
gdb/sh-nbsd-tdep.c
gdb/sparc-nbsd-tdep.c
gdb/sparc64-nbsd-tdep.c
gdb/vax-nbsd-tdep.c