From bc7b765ab71f967eb2a9c3da111d7529eec46fbe Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sun, 3 Jul 2016 11:56:21 -0700 Subject: 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/proc-events.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/proc-events.c') diff --git a/gdb/proc-events.c b/gdb/proc-events.c index b291d31..daa6f58 100644 --- a/gdb/proc-events.c +++ b/gdb/proc-events.c @@ -1536,6 +1536,9 @@ static struct trans signal_table[] = #ifdef SIGAIO { SIGAIO, "SIGAIO", "Asynchronous I/O signal" }, #endif +#ifdef SIGLIBRT + { SIGLIBRT, "SIGLIBRT", "Used by librt" }, +#endif /* FIXME: add real-time signals. */ }; -- cgit v1.1