aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2019-03-28 11:23:25 +0000
committerAlan Hayward <alan.hayward@arm.com>2019-03-28 11:45:06 +0000
commit69f4c9cc037f2226982a21fae63ffbc5e866fcca (patch)
tree049777e8958e700a515320bff8462410689ce841 /gdb
parent242a115951fe55e62036bac555017eb817ca1aa6 (diff)
downloadgdb-69f4c9cc037f2226982a21fae63ffbc5e866fcca.zip
gdb-69f4c9cc037f2226982a21fae63ffbc5e866fcca.tar.gz
gdb-69f4c9cc037f2226982a21fae63ffbc5e866fcca.tar.bz2
gdbserver: Ensure AT_HWCAP2 is defined
When using older compilers, AT_HWCAP2 may not be be defined. It is defined in elf/common.h, however including this in gdbserver/linux-low.c causes conflicts. Manually add the define if it does not exist. gdb/gdbserver/ChangeLog: * linux-low.c (AT_HWCAP2): Add define if not already included.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-low.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 8716ab5..97bc326 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2019-03-28 Alan Hayward <alan.hayward@arm.com>
+
+ * linux-low.c (AT_HWCAP2): Add define if not already included.
+
2019-03-26 Alan Hayward <alan.hayward@arm.com>
* linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 7158a67..265043f 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -75,6 +75,10 @@
#define O_LARGEFILE 0
#endif
+#ifndef AT_HWCAP2
+#define AT_HWCAP2 26
+#endif
+
/* Some targets did not define these ptrace constants from the start,
so gdbserver defines them locally here. In the future, these may
be removed after they are added to asm/ptrace.h. */