This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]