Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [obv] i386-tdep.c: Fix call to read_memory_unsigned_integer
@ 2009-07-09 23:59 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2009-07-09 23:59 UTC (permalink / raw)
  To: gdb-patches

Hi.

Checked in as obvious.
This fixes the regression in the i386-disp-step.exp testcase.

2009-07-09  Doug Evans  <dje@google.com>

	* i386-tdep.c (i386_displaced_step_fixup): Fix order of arguments
	to read_memory_unsigned_integer.

Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.280
diff -u -p -r1.280 i386-tdep.c
--- i386-tdep.c	2 Jul 2009 17:25:54 -0000	1.280
+++ i386-tdep.c	9 Jul 2009 23:25:52 -0000
@@ -523,7 +523,7 @@ i386_displaced_step_fixup (struct gdbarc
       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);
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-09 23:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 23:59 [obv] i386-tdep.c: Fix call to read_memory_unsigned_integer Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox