André Hentschel : winedbg: Implement adjust_pc_for_break on ARM.

Alexandre Julliard julliard at winehq.org
Thu Oct 7 11:24:26 CDT 2010


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Oct  6 22:20:29 2010 +0200

winedbg: Implement adjust_pc_for_break on ARM.

---

 programs/winedbg/be_arm.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c
index 102e4ad..709ce26 100644
--- a/programs/winedbg/be_arm.c
+++ b/programs/winedbg/be_arm.c
@@ -142,8 +142,13 @@ static void be_arm_clear_watchpoint(CONTEXT* ctx, unsigned idx)
 
 static int be_arm_adjust_pc_for_break(CONTEXT* ctx, BOOL way)
 {
-    dbg_printf("not done\n");
-    return 0;
+    if (way)
+    {
+        ctx->Pc--;
+        return -1;
+    }
+    ctx->Pc++;
+    return 1;
 }
 
 static int be_arm_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,




More information about the wine-cvs mailing list