Implement xfer_partial TARGET_OBJECT_SIGNAL_INFO for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Sun, 26 Jul 2020 12:10:56 +0000 (14:10 +0200)
committerKamil Rytarowski <n54@gmx.com>
Tue, 28 Jul 2020 16:12:59 +0000 (18:12 +0200)
commit4d46f40270b16070398412bc02a512143380814c
treeac62a1f14be4cc8751cedbd445ea8c64716fcbe6
parent377170fa319d39d5442b674fc978adc8f24db5e9
Implement xfer_partial TARGET_OBJECT_SIGNAL_INFO for NetBSD

NetBSD implements reading and overwriting siginfo_t received by the
tracee. With TARGET_OBJECT_SIGNAL_INFO signal information can be
examined and modified through the special variable $_siginfo.

Implement the "get_siginfo_type" gdbarch method for NetBSD architectures.

As with Linux architectures, cache the created type in the gdbarch when it
is first created.  Currently NetBSD uses an identical siginfo type on
all architectures, so there is no support for architecture-specific fields.

gdb/ChangeLog:

* nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
* nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
* nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
(init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
(nbsd_get_siginfo_type): New.
(nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
(_initialize_nbsd_tdep): New
gdb/ChangeLog
gdb/nbsd-nat.c
gdb/nbsd-nat.h
gdb/nbsd-tdep.c