diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-07-03 11:56:21 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-07-15 06:35:37 -0700 |
commit | bc7b765ab71f967eb2a9c3da111d7529eec46fbe (patch) | |
tree | 8ab1b728464f75f1a7208784ab3fe6fcb7eedc6f /gdb/common | |
parent | f7e8b360fe6dd93aae7cb4af554dc66364da4fe0 (diff) | |
download | gdb-bc7b765ab71f967eb2a9c3da111d7529eec46fbe.zip gdb-bc7b765ab71f967eb2a9c3da111d7529eec46fbe.tar.gz gdb-bc7b765ab71f967eb2a9c3da111d7529eec46fbe.tar.bz2 |
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.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/signals.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/common/signals.c b/gdb/common/signals.c index 45c0c73..f84935d 100644 --- a/gdb/common/signals.c +++ b/gdb/common/signals.c @@ -331,6 +331,10 @@ gdb_signal_from_host (int hostsig) if (hostsig == SIGINFO) return GDB_SIGNAL_INFO; #endif +#if defined (SIGLIBRT) + if (hostsig == SIGLIBRT) + return GDB_SIGNAL_LIBRT; +#endif #if defined (REALTIME_LO) if (hostsig >= REALTIME_LO && hostsig < REALTIME_HI) @@ -584,6 +588,10 @@ do_gdb_signal_to_host (enum gdb_signal oursig, case GDB_SIGNAL_INFO: return SIGINFO; #endif +#if defined (SIGLIBRT) + case GDB_SIGNAL_LIBRT: + return SIGLIBRT; +#endif default: #if defined (REALTIME_LO) |