[llvm-commits] [compiler-rt] r166177 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc
Alexey Samsonov
samsonov at google.com
Thu Oct 18 04:46:22 PDT 2012
Author: samsonov
Date: Thu Oct 18 06:46:22 2012
New Revision: 166177
URL: http://llvm.org/viewvc/llvm-project?rev=166177&view=rev
Log:
[Sanitizer] fall back to online symbolizer if user-provided callback failed
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc?rev=166177&r1=166176&r2=166177&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc Thu Oct 18 06:46:22 2012
@@ -77,7 +77,8 @@
Printf(" %s\n", StripPathPrefix(buff.data(), strip_file_prefix));
frame_num++;
}
- } else if (symbolize) {
+ }
+ if (symbolize && addr_frames_num == 0) {
// Use our own (online) symbolizer, if necessary.
addr_frames_num = SymbolizeCode(pc, addr_frames.data(),
addr_frames.size());
More information about the llvm-commits
mailing list