Implement the "get_siginfo_type" gdbarch method for FreeBSD architectures.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Jun 2017 15:14:06 +0000 (08:14 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 7 Jul 2017 23:04:18 +0000 (16:04 -0700)
commit762c974a09746bda8a5d64ed3ee887adeae742b9
tree860549a83a56aa33a2da398df84e7c0cfadfe300
parente54cb31aa33a124f746ff40c134e20e6d2bc6c34
Implement the "get_siginfo_type" gdbarch method for FreeBSD architectures.

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

gdb/ChangeLog:

* fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
(init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
(fbsd_get_siginfo_type): New.
(fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
(_initialize_fbsd_tdep): New.
gdb/ChangeLog
gdb/fbsd-tdep.c