зеркало из https://github.com/mozilla/gecko-dev.git
Bug 822148 (part 5) - DMD: avoid empty library names in stacks. r=jlebar.
--HG-- extra : rebase_source : dcf7ebcc296663221dc7f671cd151d5d1f438971
This commit is contained in:
Родитель
cd1ce642a3
Коммит
d1e9cbcfac
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче