Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From d97878b272bd7c4993f4205983ae8b7ecddbcf82 Mon Sep 17 00:00:00 2001 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 30 Apr 2016 15:31:40 -0700 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 4 | Subject: [PATCH 08/11] Use exorted definitions of SIGRTMIN |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | |
| 6 | Define W_STOPCODE if not defined already |
| 7 | |
| 8 | __SIGRTMIN is internal to glibc and other libcs e.g. musl |
| 9 | may not provide them |
| 10 | |
| 11 | Fixes |
| 12 | https://sourceware.org/bugzilla/show_bug.cgi?id=13012 |
| 13 | |
| 14 | Upstream-Status: Submitted |
| 15 | |
| 16 | Signed-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 | |
| 22 | diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 23 | index 64015e7520..acf950c38b 100644 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 24 | --- a/gdb/linux-nat.c |
| 25 | +++ b/gdb/linux-nat.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 26 | @@ -4724,6 +4724,6 @@ lin_thread_get_thread_signals (sigset_t *set) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 27 | /* 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 | } |
| 35 | diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 36 | index a90a124d3a..4f3e681962 100644 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | --- a/gdb/nat/linux-nat.h |
| 38 | +++ b/gdb/nat/linux-nat.h |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 39 | @@ -90,4 +90,8 @@ extern void linux_stop_lwp (struct lwp_info *lwp); |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 40 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 41 | extern int lwp_is_stepping (struct lwp_info *lwp); |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 42 | |
| 43 | +#ifndef W_STOPCODE |
| 44 | +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) |
| 45 | +#endif |
| 46 | + |
| 47 | #endif /* LINUX_NAT_H */ |
| 48 | -- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 49 | 2.18.0 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 50 | |