dbghelp: Implement fetch_thread_info on powerpc.
This commit is contained in:
parent
6d0e51fb66
commit
deab874424
|
@ -168,6 +168,13 @@ static BOOL fetch_thread_info(struct dump_context* dc, int thd_idx,
|
||||||
mdThd->Stack.StartOfMemoryRange = (ULONG_PTR)tib.StackLimit;
|
mdThd->Stack.StartOfMemoryRange = (ULONG_PTR)tib.StackLimit;
|
||||||
mdThd->Stack.Memory.DataSize = (ULONG_PTR)tib.StackBase -
|
mdThd->Stack.Memory.DataSize = (ULONG_PTR)tib.StackBase -
|
||||||
mdThd->Stack.StartOfMemoryRange;
|
mdThd->Stack.StartOfMemoryRange;
|
||||||
|
#elif defined(__powerpc__)
|
||||||
|
if (ctx->Iar)
|
||||||
|
mdThd->Stack.StartOfMemoryRange = ctx->Iar - 4;
|
||||||
|
else
|
||||||
|
mdThd->Stack.StartOfMemoryRange = (ULONG_PTR)tib.StackLimit;
|
||||||
|
mdThd->Stack.Memory.DataSize = (ULONG_PTR)tib.StackBase -
|
||||||
|
mdThd->Stack.StartOfMemoryRange;
|
||||||
#else
|
#else
|
||||||
#error unsupported CPU
|
#error unsupported CPU
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue