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]

[RFA] x86-64 ABI change


Hi all,
the attached patch fixes mapping from dwarf2 numbers to regnums. ABI and GDB just follows what GCC emits. OK to apply?


2003-05-13  Michal Ludvig  <mludvig@suse.cz>
	* x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
	register numbers mapping.

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.26
diff -u -p -r1.26 x86-64-tdep.c
--- x86-64-tdep.c	24 Aug 2002 00:21:35 -0000	1.26
+++ x86-64-tdep.c	26 Feb 2003 14:28:42 -0000
@@ -112,7 +112,7 @@ static struct register_info x86_64_regis
    numbering to GDB's one. Dwarf-2 numbering is 
    defined in x86-64 ABI, section 3.6.  */
 static int x86_64_dwarf2gdb_regno_map[] = {
-  0, 1, 2, 3,			/* RAX - RDX */
+  0, 3, 2, 1,			/* RAX, RDX, RCX, RBX */
   4, 5, 6, 7,			/* RSI, RDI, RBP, RSP */
   8, 9, 10, 11,			/* R8 - R11 */
   12, 13, 14, 15,		/* R12 - R15 */

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