mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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.
This commit is contained in:
parent
242a115951
commit
69f4c9cc03
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user