nommu.patch 528 B

12345678910111213
  1. diff -Nur gdb-7.11.orig/gdb/nat/linux-ptrace.h gdb-7.11/gdb/nat/linux-ptrace.h
  2. --- gdb-7.11.orig/gdb/nat/linux-ptrace.h 2016-02-10 04:19:39.000000000 +0100
  3. +++ gdb-7.11/gdb/nat/linux-ptrace.h 2016-05-06 20:50:21.991346793 +0200
  4. @@ -23,7 +23,8 @@
  5. #include "nat/gdb_ptrace.h"
  6. #ifdef __UCLIBC__
  7. -#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
  8. +#include <sched.h>
  9. +#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_USE_MMU__))
  10. /* PTRACE_TEXT_ADDR and friends. */
  11. #include <asm/ptrace.h>
  12. #define HAS_NOMMU