summaryrefslogtreecommitdiff
path: root/package/gdbserver
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-08-27 19:50:16 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-08-27 20:31:31 +0200
commitbae345fd07a3e38489492da082b4d10bdb54335a (patch)
tree1a6d565c472e6b7d88a559af6aa6524bb9be4d0d /package/gdbserver
parent0b7e6dc7d70a93f1aa79e42ec7f8ac639ae37b4f (diff)
gdbserver: fix for noMMU targets
Diffstat (limited to 'package/gdbserver')
-rw-r--r--package/gdbserver/patches/patch-gdb_nat_linux-ptrace_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/gdbserver/patches/patch-gdb_nat_linux-ptrace_c b/package/gdbserver/patches/patch-gdb_nat_linux-ptrace_c
new file mode 100644
index 000000000..0721dd86c
--- /dev/null
+++ b/package/gdbserver/patches/patch-gdb_nat_linux-ptrace_c
@@ -0,0 +1,11 @@
+--- gdb-8.0.orig/gdb/nat/linux-ptrace.c 2017-06-04 17:51:27.000000000 +0200
++++ gdb-8.0/gdb/nat/linux-ptrace.c 2017-08-05 03:34:56.803914716 +0200
+@@ -272,7 +272,7 @@ linux_fork_to_function (gdb_byte *child_
+ #define STACK_SIZE 4096
+
+ if (child_stack == NULL)
+- child_stack = xmalloc (STACK_SIZE * 4);
++ child_stack = (gdb_byte*) xmalloc (STACK_SIZE * 4);
+
+ /* Use CLONE_VM instead of fork, to support uClinux (no MMU). */
+ #ifdef __ia64__