For functions in the binary, output something compatible with addr2line. b=230336 r=brendan

git-svn-id: svn://10.0.0.236/trunk@171358 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2005-03-30 01:54:54 +00:00
parent 8b93b2aa52
commit da7dc81064

View File

@@ -1201,6 +1201,10 @@ static callsite *calltree(uint32 *bp)
method = nsDemangle(symbol);
}
#endif
if (info.dli_fbase == (void*)0x8048000) {
/* we're in the binary */
info.dli_fbase = 0;
}
if (!method) {
method = symbol
? strdup(symbol)