[RFC,1/5] Add FS_BASE and GS_BASE to DWARF register table on amd64

Message ID 1496913338-22195-2-git-send-email-gbenson@redhat.com
State New, archived
Headers

Commit Message

Gary Benson June 8, 2017, 9:15 a.m. UTC
  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(-)
  

Patch

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,