diff options
author | Doug Evans <dje@google.com> | 2009-07-09 23:27:07 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-07-09 23:27:07 +0000 |
commit | b75f0b83bcf016061f2634b8808cce7026bd8b96 (patch) | |
tree | f542d7e3d00e5d431f5009071082a246b703c35f /gdb/i386-tdep.c | |
parent | 62d2aabf6d409240d36ad0c4af9dba635a6776c8 (diff) | |
download | gdb-b75f0b83bcf016061f2634b8808cce7026bd8b96.zip gdb-b75f0b83bcf016061f2634b8808cce7026bd8b96.tar.gz gdb-b75f0b83bcf016061f2634b8808cce7026bd8b96.tar.bz2 |
* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
to read_memory_unsigned_integer.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 1bb5ec2..bf3a844 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -523,7 +523,7 @@ i386_displaced_step_fixup (struct gdbarch *gdbarch, const ULONGEST retaddr_len = 4; regcache_cooked_read_unsigned (regs, I386_ESP_REGNUM, &esp); - retaddr = read_memory_unsigned_integer (esp, byte_order, retaddr_len); + retaddr = read_memory_unsigned_integer (esp, retaddr_len, byte_order); retaddr = (retaddr - insn_offset) & 0xffffffffUL; write_memory_unsigned_integer (esp, retaddr_len, byte_order, retaddr); |