This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC 1/5] Add FS_BASE and GS_BASE to DWARF register table on amd64
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: infinity at sourceware dot org
- Date: Thu, 8 Jun 2017 10:15:34 +0100
- Subject: [RFC 1/5] Add FS_BASE and GS_BASE to DWARF register table on amd64
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=gbenson at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3CA04C04B310
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3CA04C04B310
- References: <1496913338-22195-1-git-send-email-gbenson@redhat.com>
This commit allows the registers FS_BASE and GS_BASE to be accessed
from DWARF on amd64 systems.
gdb/ChangeLog:
* amd64-tdep.c (amd64_dwarf_regmap): Add AMD64_FSBASE_REGNUM
and AMD64_GSBASE_REGNUM.
---
gdb/ChangeLog | 5 +++++
gdb/amd64-tdep.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 9ff7dfc..437bbac 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -228,8 +228,8 @@ static int amd64_dwarf_regmap[] =
-1,
/* Segment Base Address Registers. */
- -1,
- -1,
+ AMD64_FSBASE_REGNUM,
+ AMD64_GSBASE_REGNUM,
-1,
-1,
--
1.8.3.1