Split the address->symbol mapping from the rest of the stack walking code. b=374829 r=bsmedberg a=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@231859 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -829,10 +829,15 @@ static void InitTraceLog(void)
|
||||
|
||||
extern "C" {
|
||||
|
||||
PR_STATIC_CALLBACK(void) PrintStackFrame(char *aFrame, void *aClosure)
|
||||
PR_STATIC_CALLBACK(void) PrintStackFrame(void *aPC, void *aClosure)
|
||||
{
|
||||
FILE *stream = (FILE*)aClosure;
|
||||
fprintf(stream, aFrame);
|
||||
nsCodeAddressDetails details;
|
||||
char buf[1024];
|
||||
|
||||
NS_DescribeCodeAddress(aPC, &details);
|
||||
NS_FormatCodeAddressDetails(aPC, &details, buf, sizeof(buf));
|
||||
fprintf(stream, buf);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user