André Hentschel : winedbg: Implement adjust_pc_for_break on Sparc.
Alexandre Julliard
julliard at winehq.org
Thu Apr 14 11:58:20 CDT 2011
Module: wine
Branch: master
Commit: 59ca0059b6db2d0467895f687b01aff5c64ed1a8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59ca0059b6db2d0467895f687b01aff5c64ed1a8
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Apr 13 20:43:43 2011 +0200
winedbg: Implement adjust_pc_for_break on Sparc.
---
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,
More information about the wine-cvs
mailing list