dbghelp: Implement fetch_thread_info on powerpc.

This commit is contained in:
Pierre d'Herbemont 2006-06-08 22:41:22 +02:00 committed by Alexandre Julliard
parent 6d0e51fb66
commit deab874424
1 changed files with 7 additions and 0 deletions

View File

@ -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.Memory.DataSize = (ULONG_PTR)tib.StackBase -
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
#error unsupported CPU
#endif