From 6c3cc336283db01c11a89bdbfdb70cc90a7b5d3e Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 11 Aug 2015 15:28:19 -0400 Subject: [PATCH] gdbserver/linux-aarch32-low: build failure when NT_ARM_VFP not defined On some older versions of GNU/Linux, gdbserver now fails to build due to an undefined reference to NT_ARM_VFP. Same issue on Android, where this macros is undefined until Android API level 21 (Android 5.0 "Lollipop"). This patch modifies linux-aarch32-low.c to define that macros when not already defined. gdb/gdbserver/ChangeLog: * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined. --- gdb/gdbserver/linux-aarch32-low.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdb/gdbserver/linux-aarch32-low.c b/gdb/gdbserver/linux-aarch32-low.c index 7f3b985..5876b13 100644 --- a/gdb/gdbserver/linux-aarch32-low.c +++ b/gdb/gdbserver/linux-aarch32-low.c @@ -27,6 +27,12 @@ #include #endif +/* Some older versions of GNU/Linux and Android do not define + the following macros. */ +#ifndef NT_ARM_VFP +#define NT_ARM_VFP 0x400 +#endif + /* Collect GP registers from REGCACHE to buffer BUF. */ void -- 2.1.4