winedbg: Implement adjust_pc_for_break on Sparc.
authorAndré Hentschel <nerv@dawncrow.de>
Wed, 13 Apr 2011 18:43:43 +0000 (20:43 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 14 Apr 2011 15:13:58 +0000 (17:13 +0200)
programs/winedbg/be_sparc.c

index 546518a8d7501337e726a71f7e1a71cfec1ce157..3435759c92d11d4e10a060b8038fdb13333fbc5b 100644 (file)
@@ -125,8 +125,13 @@ static void be_sparc_clear_watchpoint(CONTEXT* ctx, unsigned idx)
 
 static int be_sparc_adjust_pc_for_break(CONTEXT* ctx, BOOL way)
 {
-    dbg_printf("not done for Sparc\n");
-    return 0;
+    if (way)
+    {
+        ctx->pc--;
+        return -1;
+    }
+    ctx->pc++;
+    return 1;
 }
 
 static int be_sparc_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,