André Hentschel : winedbg: Fix PC adjustment for ARM.
Alexandre Julliard
julliard at winehq.org
Wed Apr 20 11:05:18 CDT 2011
Module: wine
Branch: master
Commit: 894f892b9356ba4295d86914d1e81e36da5bdc6a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=894f892b9356ba4295d86914d1e81e36da5bdc6a
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Apr 19 21:55:00 2011 +0200
winedbg: Fix PC adjustment for ARM.
---
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,
More information about the wine-cvs
mailing list