Commit f8048112 authored by Ömer Sinan Ağacan's avatar Ömer Sinan Ağacan

Factor stack chunk printing out of printTSO

Makes it possible to print STACK (StgStack) objects easily in gdb
parent 60fb2b21
......@@ -624,10 +624,14 @@ printStackChunk( StgPtr sp, StgPtr spBottom )
}
}
static void printStack( StgStack *stack )
{
printStackChunk( stack->sp, stack->stack + stack->stack_size );
}
void printTSO( StgTSO *tso )
{
printStackChunk( tso->stackobj->sp,
tso->stackobj->stack+tso->stackobj->stack_size);
printStack( tso->stackobj );
}
/* --------------------------------------------------------------------------
......
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