aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2014-01-30 19:12:35 +0100
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2014-01-30 19:12:35 +0100
commit718ee4dc9b09491707420ae403ad1ce8dfdb61b2 (patch)
treeb41fb874da5bf9d7d4baee2f2bb72ce2a1ae0552 /gdb/auxv.c
parenteaa9d1ad0e77540e8768ad11d8389f9408249237 (diff)
downloadfsf-binutils-gdb-718ee4dc9b09491707420ae403ad1ce8dfdb61b2.zip
fsf-binutils-gdb-718ee4dc9b09491707420ae403ad1ce8dfdb61b2.tar.gz
fsf-binutils-gdb-718ee4dc9b09491707420ae403ad1ce8dfdb61b2.tar.bz2
Add support for AT_HWCAP2 auxv entry
Recent ppc64 Linux kernels provide a new auxv entry AT_HWCAP2, which is currently not recognized by GDB, causing every use of "info auxv" to show an error. This commit adds the AT_HWCAP2 define to include/elf/common.h and handles it in GDB. include/elf/ChangeLog: * common.h (AT_HWCAP2): Define. gdb/ChangeLog: * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r--gdb/auxv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index dacad10..dd13237 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -442,6 +442,7 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec);
TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str);
TAG (AT_RANDOM, _("Address of 16 random bytes"), hex);
+ TAG (AT_HWCAP2, _("Extension of AT_HWCAP"), hex);
TAG (AT_EXECFN, _("File name of executable"), str);
TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec);
TAG (AT_SYSINFO, _("Special system info/entry points"), hex);