Alexandre Julliard : winedbg: Implement single step for x86_64.

Alexandre Julliard julliard at winehq.org
Mon May 4 09:06:36 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri May  1 18:29:10 2009 +0200

winedbg: Implement single step for x86_64.

---

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

diff --git a/programs/winedbg/be_x86_64.c b/programs/winedbg/be_x86_64.c
index 6f4bf7e..56af50f 100644
--- a/programs/winedbg/be_x86_64.c
+++ b/programs/winedbg/be_x86_64.c
@@ -22,6 +22,8 @@
 
 #if defined(__x86_64__)
 
+#define STEP_FLAG 0x00000100 /* single step flag */
+
 static unsigned be_x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx, 
                                  enum be_cpu_addr bca, ADDRESS64* addr)
 {
@@ -60,7 +62,8 @@ static unsigned be_x86_64_get_register_info(int regno, enum be_cpu_addr* kind)
 
 static void be_x86_64_single_step(CONTEXT* ctx, unsigned enable)
 {
-    dbg_printf("not done single_step\n");
+    if (enable) ctx->EFlags |= STEP_FLAG;
+    else ctx->EFlags &= ~STEP_FLAG;
 }
 
 static void be_x86_64_print_context(HANDLE hThread, const CONTEXT* ctx,




More information about the wine-cvs mailing list