summaryrefslogtreecommitdiffstats
path: root/package/gdb/7.7.1/0005-move-__SIGRTMIN.patch
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2016-02-28 01:30:34 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-05 15:14:40 +0100
commit07408bbf10a9c18eda30bda35fb2793a3915a299 (patch)
treeef67459835dd1d52d3c46d5b65ded34293741987 /package/gdb/7.7.1/0005-move-__SIGRTMIN.patch
parent0f157eeb5efac2a32642aa84838930d14b3541cb (diff)
downloadbuildroot-07408bbf10a9c18eda30bda35fb2793a3915a299.tar.gz
buildroot-07408bbf10a9c18eda30bda35fb2793a3915a299.zip
gdb: add upstream patches to fix musl build
Backported three patches from upstream to all four versions of gdb that we support. The "skipping exited and joined thread" message only exists in 7.10.1 so that hunk is removed in the earlier versions. The ChangeLog modifications are also removed. Fixes http://autobuild.buildroot.net/results/e81/e8156d0b89e7157b8f10e428fc0958b0eb29e50a/ Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gdb/7.7.1/0005-move-__SIGRTMIN.patch')
-rw-r--r--package/gdb/7.7.1/0005-move-__SIGRTMIN.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/package/gdb/7.7.1/0005-move-__SIGRTMIN.patch b/package/gdb/7.7.1/0005-move-__SIGRTMIN.patch
new file mode 100644
index 0000000000..38ba1f028a
--- /dev/null
+++ b/package/gdb/7.7.1/0005-move-__SIGRTMIN.patch
@@ -0,0 +1,58 @@
+From 682b25469e66ea45b214e95962671373983c118f Mon Sep 17 00:00:00 2001
+From: Doug Evans <dje@google.com>
+Date: Mon, 26 Oct 2015 13:30:57 -0700
+Subject: [PATCH] Move __SIGRTMIN.
+
+gdb/ChangeLog:
+
+ * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
+
+gdb/gdbserver/ChangeLog:
+
+ * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
+
+[Arnout: removed the parts that don't apply, including ChangeLog]
+Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
+---
+ gdb/ChangeLog | 4 ++++
+ gdb/gdbserver/ChangeLog | 4 ++++
+ gdb/gdbserver/linux-low.c | 6 ------
+ gdb/nat/linux-nat.h | 5 +++++
+ 4 files changed, 13 insertions(+), 6 deletions(-)
+
+diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
+index 7ed67c7..e778c4c 100644
+--- a/gdb/gdbserver/linux-low.c
++++ b/gdb/gdbserver/linux-low.c
+@@ -70,12 +70,6 @@
+ #define O_LARGEFILE 0
+ #endif
+
+-/* This is the kernel's hard limit. Not to be confused with
+- SIGRTMIN. */
+-#ifndef __SIGRTMIN
+-#define __SIGRTMIN 32
+-#endif
+-
+ /* Some targets did not define these ptrace constants from the start,
+ so gdbserver defines them locally here. In the future, these may
+ be removed after they are added to asm/ptrace.h. */
+diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h
+index 0633fa9..70e6274 100644
+--- a/gdb/nat/linux-nat.h
++++ b/gdb/nat/linux-nat.h
+@@ -25,6 +25,11 @@
+ struct lwp_info;
+ struct arch_lwp_info;
+
++/* This is the kernel's hard limit. Not to be confused with SIGRTMIN. */
++#ifndef __SIGRTMIN
++#define __SIGRTMIN 32
++#endif
++
+ /* Unlike other extended result codes, WSTOPSIG (status) on
+ PTRACE_O_TRACESYSGOOD syscall events doesn't return SIGTRAP, but
+ instead SIGTRAP with bit 7 set. */
+--
+1.9.4
+
OpenPOWER on IntegriCloud