Pass SIGLIBRT directly to child processes.
authorJohn Baldwin <jhb@FreeBSD.org>
Sun, 3 Jul 2016 18:56:21 +0000 (11:56 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 15 Jul 2016 13:35:37 +0000 (06:35 -0700)
commitbc7b765ab71f967eb2a9c3da111d7529eec46fbe
tree8ab1b728464f75f1a7208784ab3fe6fcb7eedc6f
parentf7e8b360fe6dd93aae7cb4af554dc66364da4fe0
Pass SIGLIBRT directly to child processes.

FreeBSD's librt uses SIGLIBRT as an internal signal to implement
SIGEV_THREAD sigevent notifications.  Similar to SIGLWP or SIGCANCEL
this signal should be passed through to child processes by default.

include/ChangeLog:

* signals.def: Add GDB_SIGNAL_LIBRT.

gdb/ChangeLog:

* common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
(do_gdb_signal_to_host): Likewise.
* infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
programs.
* proc-events.c (signal_table): Add entry for SIGLIBRT.
gdb/ChangeLog
gdb/common/signals.c
gdb/infrun.c
gdb/proc-events.c
include/gdb/ChangeLog
include/gdb/signals.def