diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-02-13 12:01:41 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-16 11:28:16 +0000 |
| commit | 425c005cfa099c3b6c71b9da8402233e62b57f2c (patch) | |
| tree | e17fcb6a6344aae0bc99b16cca6784e9b4570497 | |
| parent | 4e585ef52b0bba5e8438823a159863ec2e103c1b (diff) | |
| download | poky-425c005cfa099c3b6c71b9da8402233e62b57f2c.tar.gz | |
gdb: Drop SIGRTMIN definition patch
This has been already fixed in gdb via
https://sourceware.org/pipermail/gdb-patches/2015-October/128532.html
and W_STOPCODE is fixed by including gdbsupport/gdb_wait.h in nat/linux-nat.h
(From OE-Core rev: b5bafde095fedb2c6f6a526c647dd08f07444f6f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb-10.1.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch | 50 |
2 files changed, 0 insertions, 51 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-10.1.inc b/meta/recipes-devtools/gdb/gdb-10.1.inc index 4b8de2b4e6..07de17f84f 100644 --- a/meta/recipes-devtools/gdb/gdb-10.1.inc +++ b/meta/recipes-devtools/gdb/gdb-10.1.inc | |||
| @@ -11,7 +11,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \ | |||
| 11 | file://0004-Add-support-for-Renesas-SH-sh4-architecture.patch \ | 11 | file://0004-Add-support-for-Renesas-SH-sh4-architecture.patch \ |
| 12 | file://0005-Dont-disable-libreadline.a-when-using-disable-static.patch \ | 12 | file://0005-Dont-disable-libreadline.a-when-using-disable-static.patch \ |
| 13 | file://0006-use-asm-sgidefs.h.patch \ | 13 | file://0006-use-asm-sgidefs.h.patch \ |
| 14 | file://0007-Use-exorted-definitions-of-SIGRTMIN.patch \ | ||
| 15 | file://0008-Change-order-of-CFLAGS.patch \ | 14 | file://0008-Change-order-of-CFLAGS.patch \ |
| 16 | file://0009-resolve-restrict-keyword-conflict.patch \ | 15 | file://0009-resolve-restrict-keyword-conflict.patch \ |
| 17 | file://0010-Fix-invalid-sigprocmask-call.patch \ | 16 | file://0010-Fix-invalid-sigprocmask-call.patch \ |
diff --git a/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch b/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch deleted file mode 100644 index 8cbc50b75f..0000000000 --- a/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch +++ /dev/null | |||
| @@ -1,50 +0,0 @@ | |||
| 1 | From 53f694ffa1ee9893b834758413c23947957f0fee 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 07/11] 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 b81014024c7..e0513d47122 100644 | ||
| 24 | --- a/gdb/linux-nat.c | ||
| 25 | +++ b/gdb/linux-nat.c | ||
| 26 | @@ -4428,6 +4428,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 44dcbb7758d..975d7276f66 100644 | ||
| 37 | --- a/gdb/nat/linux-nat.h | ||
| 38 | +++ b/gdb/nat/linux-nat.h | ||
| 39 | @@ -91,4 +91,8 @@ extern void linux_stop_lwp (struct lwp_info *lwp); | ||
| 40 | |||
| 41 | extern int lwp_is_stepping (struct lwp_info *lwp); | ||
| 42 | |||
| 43 | +#ifndef W_STOPCODE | ||
| 44 | +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) | ||
| 45 | +#endif | ||
| 46 | + | ||
| 47 | #endif /* NAT_LINUX_NAT_H */ | ||
| 48 | -- | ||
| 49 | 2.29.2 | ||
| 50 | |||
