Eric Pouech : winedbg: Implemented is_function_return method for x86-64 CPU .

Alexandre Julliard julliard at winehq.org
Thu Feb 4 11:11:00 CST 2010


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Wed Feb  3 21:47:46 2010 +0100

winedbg: Implemented is_function_return method for x86-64 CPU.

---

 programs/winedbg/be_x86_64.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/be_x86_64.c b/programs/winedbg/be_x86_64.c
index 42cdcab..e2cdc12 100644
--- a/programs/winedbg/be_x86_64.c
+++ b/programs/winedbg/be_x86_64.c
@@ -170,8 +170,8 @@ static unsigned be_x86_64_is_step_over_insn(const void* insn)
 
 static unsigned be_x86_64_is_function_return(const void* insn)
 {
-    dbg_printf("not done is_function_return\n");
-    return FALSE;
+    BYTE c;
+    return dbg_read_memory(insn, &c, sizeof(c)) && ((c == 0xC2) || (c == 0xC3));
 }
 
 static unsigned be_x86_64_is_break_insn(const void* insn)




More information about the wine-cvs mailing list