blob: 4f64dea25494f708f103f31befe0ac6a11e5fa30 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From d3f240b38eed7cd08f6c50ea896572f1327b437a Mon Sep 17 00:00:00 2001
Patrick Williamsc0f7c042017-02-23 20:41:17 -06002From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 15:31:40 -0700
4Subject: [PATCH 08/10] Use exorted definitions of SIGRTMIN
5
6Define W_STOPCODE if not defined already
7
8__SIGRTMIN is internal to glibc and other libcs e.g. musl
9may not provide them
10
11Fixes
12https://sourceware.org/bugzilla/show_bug.cgi?id=13012
13
14Upstream-Status: Submitted
15
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 gdb/linux-nat.c | 4 ++--
19 gdb/nat/linux-nat.h | 4 ++++
20 2 files changed, 6 insertions(+), 2 deletions(-)
21
22diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023index 8b29245c3d..f424ae9711 100644
Patrick Williamsc0f7c042017-02-23 20:41:17 -060024--- a/gdb/linux-nat.c
25+++ b/gdb/linux-nat.c
Brad Bishopd7bf8c12018-02-25 22:55:05 -050026@@ -5021,6 +5021,6 @@ lin_thread_get_thread_signals (sigset_t *set)
Patrick Williamsc0f7c042017-02-23 20:41:17 -060027 /* NPTL reserves the first two RT signals, but does not provide any
28 way for the debugger to query the signal numbers - fortunately
29 they don't change. */
30- sigaddset (set, __SIGRTMIN);
31- sigaddset (set, __SIGRTMIN + 1);
32+ sigaddset (set, SIGRTMIN);
33+ sigaddset (set, SIGRTMIN + 1);
34 }
35diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h
Brad Bishopd7bf8c12018-02-25 22:55:05 -050036index 7dd18fefff..35137ab34f 100644
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037--- a/gdb/nat/linux-nat.h
38+++ b/gdb/nat/linux-nat.h
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039@@ -90,4 +90,8 @@ extern void linux_stop_lwp (struct lwp_info *lwp);
Patrick Williamsc0f7c042017-02-23 20:41:17 -060040
Brad Bishopd7bf8c12018-02-25 22:55:05 -050041 extern int lwp_is_stepping (struct lwp_info *lwp);
Patrick Williamsc0f7c042017-02-23 20:41:17 -060042
43+#ifndef W_STOPCODE
44+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
45+#endif
46+
47 #endif /* LINUX_NAT_H */
48--
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500492.13.1
Patrick Williamsc0f7c042017-02-23 20:41:17 -060050