[binutils-gdb] Read signal information from FreeBSD core dumps.

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Sat Jul 8 05:31:00 GMT 2017


*** TEST RESULTS FOR COMMIT 4b654465bfc3034c969d2d942c14b2cedfd3e3b6 ***

Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: 4b654465bfc3034c969d2d942c14b2cedfd3e3b6

Read signal information from FreeBSD core dumps.

FreeBSD recently added a new ELF core note which dumps the entire LWP
info structure (the same structure returned by the ptrace PT_LWPINFO
operation) for each thread.  The plan is for this note to eventually
supplant the older "thrmisc" ELF core note as it contains more
information and it permits new information to be exported via both
ptrace() and core dumps using the same structure.

For signal information, the implementation is similar to the native
implementation for FreeBSD processes.  The PL_FLAG_SI flag must be
checked to determine if the embedded siginfo_t structure is valid, and
if so it is transferred into the caller's buffer.

gdb/ChangeLog:

	* fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
	(LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
	(SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
	(fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.



More information about the Gdb-testers mailing list