diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-04-30 18:41:57 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-14 23:05:12 +0100 |
commit | 0c717ff4e706220467924b5159dbeca12184e7fb (patch) | |
tree | 6a5bf7b738c8839d6b78b1b4c760490c1c40d71c /meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch | |
parent | 6d27c16ec0c63da001a21f8e3157e7cbfa57e554 (diff) | |
download | poky-0c717ff4e706220467924b5159dbeca12184e7fb.tar.gz |
gdb: Upgrade to 7.11
(From OE-Core rev: 0cea061bf62f3092d857bc503b96e77f55134a39)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch b/meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch new file mode 100644 index 0000000000..7e58b617ad --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/0008-Use-exorted-definitions-of-SIGRTMIN.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From e54ead9d81f4d38412751b815f909db3cb144bb1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 30 Apr 2016 15:31:40 -0700 | ||
4 | Subject: [PATCH 08/10] Use exorted definitions of SIGRTMIN | ||
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 | ||
23 | index 0829bcb..3b8a896 100644 | ||
24 | --- a/gdb/linux-nat.c | ||
25 | +++ b/gdb/linux-nat.c | ||
26 | @@ -4845,6 +4845,6 @@ lin_thread_get_thread_signals (sigset_t *set) | ||
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 | ||
36 | index 2b485db..d058afc 100644 | ||
37 | --- a/gdb/nat/linux-nat.h | ||
38 | +++ b/gdb/nat/linux-nat.h | ||
39 | @@ -85,4 +85,8 @@ extern enum target_stop_reason lwp_stop_reason (struct lwp_info *lwp); | ||
40 | |||
41 | extern void linux_stop_lwp (struct lwp_info *lwp); | ||
42 | |||
43 | +#ifndef W_STOPCODE | ||
44 | +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) | ||
45 | +#endif | ||
46 | + | ||
47 | #endif /* LINUX_NAT_H */ | ||
48 | -- | ||
49 | 2.8.2 | ||
50 | |||