aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/gdb/ChangeLog4
-rw-r--r--include/gdb/signals.def4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index f05ba4b..05f127e 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-15 John Baldwin <jhb@FreeBSD.org>
+
+ * signals.def: Add GDB_SIGNAL_LIBRT.
+
2016-01-06 Mike Frysinger <vapier@gentoo.org>
* remote-sim.h (sim_open): Mark argv const.
diff --git a/include/gdb/signals.def b/include/gdb/signals.def
index 61cc88c..2b30e71 100644
--- a/include/gdb/signals.def
+++ b/include/gdb/signals.def
@@ -194,7 +194,9 @@ SET (GDB_EXC_EMULATION, 148, "EXC_EMULATION", "Emulation instruction")
SET (GDB_EXC_SOFTWARE, 149, "EXC_SOFTWARE", "Software generated exception")
SET (GDB_EXC_BREAKPOINT, 150, "EXC_BREAKPOINT", "Breakpoint")
+SET (GDB_SIGNAL_LIBRT, 151, "SIGLIBRT", "librt internal signal")
+
/* If you are adding a new signal, add it just above this comment. */
/* Last and unused enum value, for sizing arrays, etc. */
-SET (GDB_SIGNAL_LAST, 151, NULL, "GDB_SIGNAL_LAST")
+SET (GDB_SIGNAL_LAST, 152, NULL, "GDB_SIGNAL_LAST")