sanitizer_common: be more verbose, when symbolizer is not found.

Summary:
I have othen been stuck when I got an ASAN report, but no symbols
are resolved. The reasons might be different, and it always 
requires a bit of detective work to track down.

These more verbose error messages will help the users like me.

Reviewers: samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14135

llvm-svn: 251553
This commit is contained in:
Ivan Krasin 2015-10-28 20:45:34 +00:00
parent 522ccb9d80
commit 1fe5fab905
1 changed files with 4 additions and 2 deletions

View File

@ -446,14 +446,16 @@ static void ChooseSymbolizerTools(IntrusiveList<SymbolizerTool> *list,
if (SymbolizerTool *tool = ChooseExternalSymbolizer(allocator)) {
list->push_back(tool);
} else {
VReport(2, "No internal or external symbolizer found.\n");
}
#if SANITIZER_MAC
VReport(2, "Using dladdr symbolizer.\n");
list->push_back(new(*allocator) DlAddrSymbolizer());
#endif // SANITIZER_MAC
if (list->size() == 0) {
Report("WARNING: no internal or external symbolizer found.\n");
}
}
Symbolizer *Symbolizer::PlatformInit() {