From: Doug Evans Date: Thu, 9 Jul 2009 23:27:07 +0000 (+0000) Subject: * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b75f0b83bcf016061f2634b8808cce7026bd8b96;p=binutils-gdb.git * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments to read_memory_unsigned_integer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3347db4122..dfd6c44ae1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-07-09 Doug Evans + + * i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments + to read_memory_unsigned_integer. + 2009-07-09 Jan Kratochvil Report error on inaccessible memory. diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 1bb5ec2c5ae..bf3a8445ce3 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);