Commit 2c5a7743 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winedbg: Respect Thumb mode when adjusting PC on ARM.

parent c6008a06
......@@ -205,13 +205,15 @@ static void be_arm_clear_watchpoint(CONTEXT* ctx, unsigned idx)
static int be_arm_adjust_pc_for_break(CONTEXT* ctx, BOOL way)
{
INT step = (ctx->Cpsr & 0x20) ? 2 : 4;
if (way)
{
ctx->Pc-=4;
return -4;
ctx->Pc -= step;
return -step;
}
ctx->Pc+=4;
return 4;
ctx->Pc += step;
return step;
}
static int be_arm_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment