소스 검색

gdbserver: fix for noMMU targets

Waldemar Brodkorb 6 년 전
부모
커밋
bae345fd07
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      package/gdbserver/patches/patch-gdb_nat_linux-ptrace_c

+ 11 - 0
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__