Eric Pouech : winedbg: Also recognize 'rep ret' as a valid return insn for i386 as we did for x86_64.

Alexandre Julliard julliard at winehq.org
Mon May 14 14:26:03 CDT 2012


Module: wine
Branch: master
Commit: 18986ee013d856bbf26aa910128be8425ed7345e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=18986ee013d856bbf26aa910128be8425ed7345e

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sat May 12 18:11:31 2012 +0200

winedbg: Also recognize 'rep ret' as a valid return insn for i386 as we did for x86_64.

---

 programs/winedbg/be_i386.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/programs/winedbg/be_i386.c b/programs/winedbg/be_i386.c
index d9fb67c..5dc00ed 100644
--- a/programs/winedbg/be_i386.c
+++ b/programs/winedbg/be_i386.c
@@ -354,6 +354,11 @@ static unsigned be_i386_is_function_return(const void* insn)
     BYTE ch;
 
     if (!dbg_read_memory(insn, &ch, sizeof(ch))) return FALSE;
+    if (ch == 0xF3) /* REP */
+    {
+        insn = (const char*)insn + 1;
+        if (!dbg_read_memory(insn, &ch, sizeof(ch))) return FALSE;
+    }
     return (ch == 0xC2) || (ch == 0xC3);
 }
 




More information about the wine-cvs mailing list