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