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] amd64 dwarf2 registers mapping


Hi all,
the attached patch corrects mapping from dwarf2 register numbers to
gdb internal numberring. Having this I got rid of 16 failures in a
testsuite. Committed as obvious to both 6.0 and head.

2003-08-07  Michal Ludvig  <mludvig@suse.cz>
	* x86-64-tdep.c (x86_64_dwarf_regmap): Correct register
	numbers.

Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.79.2.3
diff -u -p -r1.79.2.3 x86-64-tdep.c
--- x86-64-tdep.c       13 Jul 2003 22:04:19 -0000      1.79.2.3
+++ x86-64-tdep.c       7 Aug 2003 07:33:22 -0000
@@ -155,7 +155,7 @@ x86_64_register_type (struct gdbarch *gd
 static int x86_64_dwarf_regmap[] =
 {
   /* General Purpose Registers RAX, RDX, RCX, RBX, RSI, RDI.  */
-  X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, 3, 2,
+  X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, 2, 1,
   4, X86_64_RDI_REGNUM,

/* Frame Pointer Register RBP. */

Michal Ludvig
--
* SuSE CR, s.r.o     * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz
Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.79.2.3
diff -u -p -r1.79.2.3 x86-64-tdep.c
--- x86-64-tdep.c	13 Jul 2003 22:04:19 -0000	1.79.2.3
+++ x86-64-tdep.c	7 Aug 2003 07:33:22 -0000
@@ -155,7 +155,7 @@ x86_64_register_type (struct gdbarch *gd
 static int x86_64_dwarf_regmap[] =
 {
   /* General Purpose Registers RAX, RDX, RCX, RBX, RSI, RDI.  */
-  X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, 3, 2, 
+  X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, 2, 1, 
   4, X86_64_RDI_REGNUM,
 
   /* Frame Pointer Register RBP.  */

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