From: Joel Brobecker Date: Tue, 11 Aug 2015 19:28:19 +0000 (-0400) Subject: gdbserver/linux-aarch32-low: build failure when NT_ARM_VFP not defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16d5f64295ccf2a8e9fe3ed350c94c38cee5a481;p=binutils-gdb.git 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 7f52fb8f9fc..2764d28f59b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-08-18 Joel Brobecker + + * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined. + 2015-08-14 Matthew Fortune * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL. diff --git a/gdb/gdbserver/linux-aarch32-low.c b/gdb/gdbserver/linux-aarch32-low.c index 7f3b9855725..5876b1304f2 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