mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
to read_memory_unsigned_integer.
This commit is contained in:
parent
62d2aabf6d
commit
b75f0b83bc
@ -1,3 +1,8 @@
|
||||
2009-07-09 Doug Evans <dje@google.com>
|
||||
|
||||
* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
|
||||
to read_memory_unsigned_integer.
|
||||
|
||||
2009-07-09 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Report error on inaccessible memory.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user