dbghelp: Implement arm_get_addr.
This commit is contained in:
parent
403201b87f
commit
a4c1b34146
|
@ -32,15 +32,18 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
|||
static unsigned arm_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr ca, ADDRESS64* addr)
|
||||
{
|
||||
addr->Mode = AddrModeFlat;
|
||||
addr->Segment = 0; /* don't need segment */
|
||||
switch (ca)
|
||||
{
|
||||
case cpu_addr_pc:
|
||||
case cpu_addr_stack:
|
||||
case cpu_addr_frame:
|
||||
default:
|
||||
FIXME("not done for ARM\n");
|
||||
}
|
||||
#ifdef __arm__
|
||||
case cpu_addr_pc: addr->Offset = ctx->Pc; return TRUE;
|
||||
case cpu_addr_stack: addr->Offset = ctx->Sp; return TRUE;
|
||||
case cpu_addr_frame: addr->Offset = ctx->Fp; return TRUE;
|
||||
#endif
|
||||
default: addr->Mode = -1;
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static BOOL arm_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CONTEXT* context)
|
||||
|
|
Loading…
Reference in New Issue