diff options
author | Pierre Muller <muller@sourceware.org> | 2013-09-26 07:00:00 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2013-09-26 07:00:00 +0000 |
commit | 5b856f360b037357d147f20b7c20d3d463692b18 (patch) | |
tree | be03b5ce1e612f80d125cd1ac2594d4eecb352e8 /gdb/amd64-tdep.c | |
parent | d3e819815acd7b1b075bc0c7029dc07dd935f3d2 (diff) | |
download | gdb-5b856f360b037357d147f20b7c20d3d463692b18.zip gdb-5b856f360b037357d147f20b7c20d3d463692b18.tar.gz gdb-5b856f360b037357d147f20b7c20d3d463692b18.tar.bz2 |
Replace constant values 8 to 15 by AMD64_R8_REGNUM to
AMD64_R15_REGNUM when a register index is expected.
* amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
Substitute in array.
* amd64-tdep.c (amd64_dwarf_regmap): Ditto.
(amd64_push_arguments): Substitute in integer_regnum array.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 37218ce..4d6b325 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -109,7 +109,14 @@ static int amd64_dwarf_regmap[] = AMD64_RSP_REGNUM, /* Extended Integer Registers 8 - 15. */ - 8, 9, 10, 11, 12, 13, 14, 15, + AMD64_R8_REGNUM, /* %r8 */ + AMD64_R9_REGNUM, /* %r9 */ + AMD64_R10_REGNUM, /* %r10 */ + AMD64_R11_REGNUM, /* %r11 */ + AMD64_R12_REGNUM, /* %r12 */ + AMD64_R13_REGNUM, /* %r13 */ + AMD64_R14_REGNUM, /* %r14 */ + AMD64_R15_REGNUM, /* %r15 */ /* Return Address RA. Mapped to RIP. */ AMD64_RIP_REGNUM, @@ -758,8 +765,8 @@ amd64_push_arguments (struct regcache *regcache, int nargs, AMD64_RSI_REGNUM, /* %rsi */ AMD64_RDX_REGNUM, /* %rdx */ AMD64_RCX_REGNUM, /* %rcx */ - 8, /* %r8 */ - 9 /* %r9 */ + AMD64_R8_REGNUM, /* %r8 */ + AMD64_R9_REGNUM /* %r9 */ }; static int sse_regnum[] = { |