This is the mail archive of the gdb-patches@sources.redhat.com 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]

[PATCH] Add missing AMD64 registers


This patch adds constants for the segment registers to amd64-tdep.h.
I'm working on some code that will use these.

Anyway, this was my botched check-in.  Things should be fixed now.

Mark


2004-04-11  Mark Kettenis  <kettenis@gnu.org>

	* amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
	AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
	AMD64_FS_REGNUM and AMD64_GS_REGNUM.

Index: amd64-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/amd64-tdep.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- amd64-tdep.h 14 Mar 2004 21:38:55 -0000 1.3
+++ amd64-tdep.h 12 Apr 2004 16:17:20 -0000 1.4
@@ -45,6 +45,12 @@ enum amd64_regnum
   AMD64_R15_REGNUM = 15,	/* %r15 */
   AMD64_RIP_REGNUM,		/* %rip */
   AMD64_EFLAGS_REGNUM,		/* %eflags */
+  AMD64_CS_REGNUM,		/* %cs */
+  AMD64_SS_REGNUM,		/* %ss */
+  AMD64_DS_REGNUM,		/* %ds */
+  AMD64_ES_REGNUM,		/* %es */
+  AMD64_FS_REGNUM,		/* %fs */
+  AMD64_GS_REGNUM,		/* %gs */
   AMD64_ST0_REGNUM = 24,	/* %st0 */
   AMD64_XMM0_REGNUM = 40,	/* %xmm0 */
   AMD64_XMM1_REGNUM		/* %xmm1 */


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