forked from OSchip/llvm-project
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:
parent
522ccb9d80
commit
1fe5fab905
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue