This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] x86-64 ABI change
- From: Michal Ludvig <mludvig at suse dot cz>
- To: GDB Patches <gdb-patches at sources dot redhat dot com>
- Date: Tue, 13 May 2003 15:48:18 +0200
- Subject: [RFA] x86-64 ABI change
- Organization: SuSE CR, s.r.o.
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 */