]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/gdb/7.11.1/0004-Fix-gdbserver-build-on-uClibc-noMMU.patch
gdb: remove Blackfin patch
[coffee/buildroot.git] / package / gdb / 7.11.1 / 0004-Fix-gdbserver-build-on-uClibc-noMMU.patch
1 From d6bf0c57a6bf361ac53887653aa1878e60d56335 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Fri, 9 Jun 2017 10:19:32 +0200
4 Subject: [PATCH] Fix gdbserver build on uClibc/noMMU
5
6 The noMMU specific code requires including <sched.h>.
7
8 Originally from
9 https://cgit.openadk.org/cgi/cgit/openadk.git/plain/package/gdbserver/patches/nommu.patch.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13  gdb/nat/linux-ptrace.h | 3 ++-
14  1 file changed, 2 insertions(+), 1 deletion(-)
15
16 diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h
17 index 0a23bcb..35b7cbb 100644
18 --- a/gdb/nat/linux-ptrace.h
19 +++ b/gdb/nat/linux-ptrace.h
20 @@ -23,7 +23,8 @@ struct buffer;
21  #include "nat/gdb_ptrace.h"
22  
23  #ifdef __UCLIBC__
24 -#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
25 +#include <sched.h>
26 +#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_USE_MMU__))
27  /* PTRACE_TEXT_ADDR and friends.  */
28  #include <asm/ptrace.h>
29  #define HAS_NOMMU
30 -- 
31 2.7.4
32