diff options
author | Michal Ludvig <mludvig@suse.cz> | 2003-05-19 06:28:44 +0000 |
---|---|---|
committer | Michal Ludvig <mludvig@suse.cz> | 2003-05-19 06:28:44 +0000 |
commit | a09d8bdab74bf86470c4f574854412b55db4879d (patch) | |
tree | 826bb3d1b0c1b149682f81a846e9f8c5ea4c62b7 | |
parent | 69636828394de8c8eb96646ac1f61ef466bd25a7 (diff) | |
download | gdb-a09d8bdab74bf86470c4f574854412b55db4879d.zip gdb-a09d8bdab74bf86470c4f574854412b55db4879d.tar.gz gdb-a09d8bdab74bf86470c4f574854412b55db4879d.tar.bz2 |
2003-05-19 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
register numbers mapping.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/x86-64-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55dc2e8..f0eb434 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-05-19 Michal Ludvig <mludvig@suse.cz> + + * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix + register numbers mapping. + 2003-05-18 Adam Fedor <fedor@gnu.org> * symtab.c (completion_list_objc_symbol): New function. diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index 737d565..121c85e 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -112,7 +112,7 @@ static struct register_info x86_64_register_info_table[] = { 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 */ |