* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
authorDoug Evans <dje@google.com>
Thu, 9 Jul 2009 23:27:07 +0000 (23:27 +0000)
committerDoug Evans <dje@google.com>
Thu, 9 Jul 2009 23:27:07 +0000 (23:27 +0000)
to read_memory_unsigned_integer.

gdb/ChangeLog
gdb/i386-tdep.c

index d3347db4122d1ae3e8fa439d58cfa9dbb98110bb..dfd6c44ae1f774faf6941f7259307971286c1ab0 100644 (file)
@@ -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.
index 1bb5ec2c5aecfc4a8c9ed07be435ccb9cca0a2f5..bf3a8445ce37eee48518c65b58bead309674190f 100644 (file)
@@ -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);