winedbg: Implement adjust_pc_for_break on Sparc
André Hentschel
nerv at dawncrow.de
Wed Apr 13 13:43:43 CDT 2011
---
programs/winedbg/be_sparc.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/programs/winedbg/be_sparc.c b/programs/winedbg/be_sparc.c
index 546518a..3435759 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,
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list