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.
+2015-08-18 Joel Brobecker <brobecker@adacore.com>
+
+ * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
+
2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
* linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
#include <elf.h>
#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