This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] Support fs_base and gs_base for native FreeBSD/amd64
- From: John Baldwin <jhb at FreeBSD dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 27 Jun 2017 15:49:46 -0700
- Subject: [PATCH 0/2] Support fs_base and gs_base for native FreeBSD/amd64
- Authentication-results: sourceware.org; auth=none
I did not add the fs_base and gs_base registers to the x32 descriptions
since I'm not aware of a platform supporting x32 other than Linux.
On the other hand, I wonder if we shouldn't just add fs_base and gs_base
to the "core" descriptions alongside "fs" and "gs" rather than using a
separate feature if they are always going to be present.
The manual dependencies for the various x86 regformat data files have
several inconsistencies (missing dependencies or in some cases wrong
dependencies), but I didn't do a fixup of those since Yao's patches
are going to replace all that anyway.
John Baldwin (2):
Include the fs_base and gs_base registers in amd64 target
descriptions.
Support the fs_base and gs_base registers on FreeBSD/amd64 native
processes.
gdb/ChangeLog | 32 ++++
gdb/amd64-bsd-nat.c | 54 +++++++
gdb/features/Makefile | 14 +-
gdb/features/i386/amd64-avx-avx512.c | 180 +++++++++++----------
gdb/features/i386/amd64-avx-avx512.xml | 1 +
gdb/features/i386/amd64-avx-mpx-avx512-pku.c | 194 ++++++++++++-----------
gdb/features/i386/amd64-avx-mpx-avx512-pku.xml | 1 +
gdb/features/i386/amd64-avx-mpx.c | 48 +++---
gdb/features/i386/amd64-avx-mpx.xml | 1 +
gdb/features/i386/amd64-avx.c | 36 +++--
gdb/features/i386/amd64-avx.xml | 1 +
gdb/features/i386/amd64-mpx.c | 16 +-
gdb/features/i386/amd64-mpx.xml | 1 +
gdb/features/i386/amd64.c | 4 +
gdb/features/i386/amd64.xml | 1 +
gdb/regformats/i386/amd64-avx-avx512.dat | 2 +
gdb/regformats/i386/amd64-avx-mpx-avx512-pku.dat | 1 -
gdb/regformats/i386/amd64-avx-mpx.dat | 2 +
gdb/regformats/i386/amd64-avx.dat | 2 +
gdb/regformats/i386/amd64-mpx.dat | 2 +
gdb/regformats/i386/amd64.dat | 2 +
21 files changed, 361 insertions(+), 234 deletions(-)
--
2.11.0