winedbg: Fix PC adjustment for ARM

André Hentschel nerv at dawncrow.de
Tue Apr 19 14:55:00 CDT 2011


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

diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c
index 8f07251..732b581 100644
--- a/programs/winedbg/be_arm.c
+++ b/programs/winedbg/be_arm.c
@@ -3,7 +3,7 @@
  *
  * Copyright 2000-2003 Marcus Meissner
  *                2004 Eric Pouech
- *                2010 André Hentschel
+ *                2010, 2011 André Hentschel
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -164,11 +164,11 @@ static int be_arm_adjust_pc_for_break(CONTEXT* ctx, BOOL way)
 {
     if (way)
     {
-        ctx->Pc--;
-        return -1;
+        ctx->Pc-=4;
+        return -4;
     }
-    ctx->Pc++;
-    return 1;
+    ctx->Pc+=4;
+    return 4;
 }
 
 static int be_arm_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list