aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-07-03 11:56:21 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2016-07-15 06:35:37 -0700
commitbc7b765ab71f967eb2a9c3da111d7529eec46fbe (patch)
tree8ab1b728464f75f1a7208784ab3fe6fcb7eedc6f /gdb/infrun.c
parentf7e8b360fe6dd93aae7cb4af554dc66364da4fe0 (diff)
downloadgdb-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/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 70a0790..257ac8a 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -9409,6 +9409,8 @@ leave it stopped or free to run as needed."),
signal_print[GDB_SIGNAL_WAITING] = 0;
signal_stop[GDB_SIGNAL_CANCEL] = 0;
signal_print[GDB_SIGNAL_CANCEL] = 0;
+ signal_stop[GDB_SIGNAL_LIBRT] = 0;
+ signal_print[GDB_SIGNAL_LIBRT] = 0;
/* Update cached state. */
signal_cache_update (-1);