[PATCH 07/10] [WineDbg]: implemented is_function_return method for x86-64 CPU

Eric Pouech eric.pouech at orange.fr
Wed Feb 3 14:47:46 CST 2010




A+
---

 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-patches mailing list