diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-10-05 09:50:01 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-10-05 09:50:01 -0700 |
commit | 12c4bd7f53e9cefcf7c3a7f8cbf9e552526cb963 (patch) | |
tree | f02505e3e580b47d64c1db0b07c96fc7833f9234 /gdb/fbsd-tdep.c | |
parent | 2bfa0cdfadd313f3cc35329a17ba3c62865208a3 (diff) | |
download | gdb-12c4bd7f53e9cefcf7c3a7f8cbf9e552526cb963.zip gdb-12c4bd7f53e9cefcf7c3a7f8cbf9e552526cb963.tar.gz gdb-12c4bd7f53e9cefcf7c3a7f8cbf9e552526cb963.tar.bz2 |
Handle FreeBSD-specific AT_EHDRFLAGS and AT_HWCAP auxiliary vector types.
FreeBSD recently added two additional ELF auxiliary vectors. FreeBSD's
AT_HWCAP uses a different number compared to AT_HWCAP on Linux as the
numerical value was already in use for a different vector on FreeBSD.
include/ChangeLog:
* elf/common.h (AT_FREEBSD_EHDRFLAGS, AT_FREEBSD_HWCAP): Define.
gdb/ChangeLog:
* fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
AT_HWCAP.
Diffstat (limited to 'gdb/fbsd-tdep.c')
-rw-r--r-- | gdb/fbsd-tdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index 727e28a..fa4cd91 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -392,6 +392,8 @@ fbsd_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, TAG (PAGESIZESLEN, _("Number of pagesizes"), AUXV_FORMAT_DEC); TAG (TIMEKEEP, _("Pointer to timehands"), AUXV_FORMAT_HEX); TAG (STACKPROT, _("Initial stack protection"), AUXV_FORMAT_HEX); + TAG (EHDRFLAGS, _("ELF header e_flags"), AUXV_FORMAT_HEX); + TAG (HWCAP, _("Machine-dependent CPU capability hints"), AUXV_FORMAT_HEX); default: default_print_auxv_entry (gdbarch, file, type, val); return; |