Bug 822148 (part 5) - DMD: avoid empty library names in stacks. r=jlebar.

--HG--
extra : rebase_source : dcf7ebcc296663221dc7f671cd151d5d1f438971
This commit is contained in:
Nicholas Nethercote 2012-12-17 21:55:12 -08:00
Родитель cd1ce642a3
Коммит d1e9cbcfac
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -645,9 +645,15 @@ public:
MOZ_ASSERT(entry.mPc == aPc);
// Use "???" for unknown functions.
W(" %s[%s +0x%X] %p\n", entry.mFunction ? entry.mFunction : "???",
entry.mLibrary, entry.mLOffset, entry.mPc);
// Sometimes we get nothing useful. Just print "???" for the entire entry
// so that fix-linux-stack.pl doesn't complain about an empty filename.
if (!entry.mFunction && !entry.mLibrary[0] && entry.mLOffset == 0) {
W(" ??? %p\n", entry.mPc);
} else {
// Use "???" for unknown functions.
W(" %s[%s +0x%X] %p\n", entry.mFunction ? entry.mFunction : "???",
entry.mLibrary, entry.mLOffset, entry.mPc);
}
}
size_t SizeOfIncludingThis()