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:
dbaron%dbaron.org
2007-08-10 21:32:50 +00:00
parent 82477775ec
commit af2cfceaff
6 changed files with 370 additions and 157 deletions

View File

@@ -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);
}
}