From 59ca0059b6db2d0467895f687b01aff5c64ed1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 13 Apr 2011 20:43:43 +0200 Subject: [PATCH] winedbg: Implement adjust_pc_for_break on Sparc. --- programs/winedbg/be_sparc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/programs/winedbg/be_sparc.c b/programs/winedbg/be_sparc.c index 546518a8d75..3435759c92d 100644 --- a/programs/winedbg/be_sparc.c +++ b/programs/winedbg/be_sparc.c @@ -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,