+2016-07-15 John Baldwin <jhb@FreeBSD.org>
+
+ * 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.
+
2016-07-14 Tom Tromey <tom@tromey.com>
* python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
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)
case GDB_SIGNAL_INFO:
return SIGINFO;
#endif
+#if defined (SIGLIBRT)
+ case GDB_SIGNAL_LIBRT:
+ return SIGLIBRT;
+#endif
default:
#if defined (REALTIME_LO)
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);
#ifdef SIGAIO
{ SIGAIO, "SIGAIO", "Asynchronous I/O signal" },
#endif
+#ifdef SIGLIBRT
+ { SIGLIBRT, "SIGLIBRT", "Used by librt" },
+#endif
/* FIXME: add real-time signals. */
};
+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.
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")