summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-01-28 11:14:37 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2022-01-28 11:14:37 -0800
commit7384826ebff8a91a3f9b632e9e3982760fab966e (patch)
treec1a7e3eff5562eeec53ac44686864a8873fbfb4a /gdb/amd64-tdep.h
parentUse register maps for gp regsets on FreeBSD/x86 core dumps. (diff)
downloadbinutils-gdb-7384826ebff8a91a3f9b632e9e3982760fab966e.tar.gz
binutils-gdb-7384826ebff8a91a3f9b632e9e3982760fab966e.tar.bz2
binutils-gdb-7384826ebff8a91a3f9b632e9e3982760fab966e.zip
FreeBSD x86: Use tramp-frame for signal frames.
Use a register map to describe the registers in mcontext_t as part of the signal frame as is done on several other FreeBSD arches. This permits fetching the fsbase and gsbase register values from the signal frame for both amd64 and i386 and permits fetching additional segment registers stored as 16-bit values on amd64. While signal frames on FreeBSD do contain floating point/XSAVE state, these unwinders do not attempt to supply those registers. The existing x86 signal frame uwinders do not support these registers, and the only existing functions which handle FSAVE/FXSAVE/XSAVE state all work with regcaches. In the future these unwinders could create a tempory regcache, collect floating point registers, and then supply values out of the regcache into the trad-frame.
Diffstat (limited to 'gdb/amd64-tdep.h')
-rw-r--r--gdb/amd64-tdep.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/amd64-tdep.h b/gdb/amd64-tdep.h
index cdc1d6f6df4..c18766e71c4 100644
--- a/gdb/amd64-tdep.h
+++ b/gdb/amd64-tdep.h
@@ -144,7 +144,4 @@ extern int amd64nbsd_r_reg_offset[];
/* Variables exported from amd64-obsd-tdep.c. */
extern int amd64obsd_r_reg_offset[];
-/* Variables exported from amd64-fbsd-tdep.c. */
-extern int amd64fbsd_sc_reg_offset[];
-
#endif /* amd64-tdep.h */