summaryrefslogtreecommitdiffstats
path: root/main/gdb/gdb-linux_nat.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-11 05:59:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-12 07:17:46 +0000
commit376454e172c208d16c5d188802301102090e6b85 (patch)
tree6051127dacfcfcb46cf8b07e02c073dea47df617 /main/gdb/gdb-linux_nat.patch
parent5e3f5ab9a2ea79b93da052a274d8b709410b8381 (diff)
downloadaports-376454e172c208d16c5d188802301102090e6b85.tar.bz2
aports-376454e172c208d16c5d188802301102090e6b85.tar.xz
main/gdb: support crosscompiling and musl
Diffstat (limited to 'main/gdb/gdb-linux_nat.patch')
-rw-r--r--main/gdb/gdb-linux_nat.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/gdb/gdb-linux_nat.patch b/main/gdb/gdb-linux_nat.patch
new file mode 100644
index 000000000..ba947ad07
--- /dev/null
+++ b/main/gdb/gdb-linux_nat.patch
@@ -0,0 +1,30 @@
+diff -u -r -N gdb-7.3.1-org//gdb/linux-nat.c gdb-7.3.1-patched//gdb/linux-nat.c
+--- gdb-7.3.1-org//gdb/linux-nat.c 1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.3.1-patched//gdb/linux-nat.c 2011-09-22 22:17:38.647841814 +0000
+@@ -18,6 +18,7 @@
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
++#include "stopcode.h"
+ #include "defs.h"
+ #include "inferior.h"
+ #include "target.h"
+@@ -68,6 +69,10 @@
+ # endif
+ #endif /* HAVE_PERSONALITY */
+
++#ifndef __SIGRTMIN
++#define __SIGRTMIN SIGRTMIN
++#endif
++
+ /* This comment documents high-level logic of this file.
+
+ Waiting for events in sync mode
+diff -u -r -N gdb-7.3.1-org//gdb/stopcode.h gdb-7.3.1-patched//gdb/stopcode.h
+--- gdb-7.3.1-org//gdb/stopcode.h 1970-01-01 00:00:00.000000000 +0000
++++ gdb-7.3.1-patched//gdb/stopcode.h 2011-09-22 22:17:38.648841814 +0000
+@@ -0,0 +1,4 @@
++#ifndef W_STOPCODE
++#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
++#endif
++