From 6979ea7d5bb62921f1817388c1d203bce045dca2 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Wed, 3 Feb 2010 21:47:46 +0100 Subject: [PATCH] winedbg: Implemented is_function_return method for x86-64 CPU. --- programs/winedbg/be_x86_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/winedbg/be_x86_64.c b/programs/winedbg/be_x86_64.c index 42cdcab59d2..e2cdc12629d 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)