[compiler-rt] r195955 - [ASan] Also print <empty stack> when size==0
Timur Iskhodzhanov
timurrrr at google.com
Fri Nov 29 04:08:59 PST 2013
Author: timurrrr
Date: Fri Nov 29 06:08:59 2013
New Revision: 195955
URL: http://llvm.org/viewvc/llvm-project?rev=195955&view=rev
Log:
[ASan] Also print <empty stack> when size==0
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=195955&r1=195954&r2=195955&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.cc Fri Nov 29 06:08:59 2013
@@ -41,8 +41,8 @@ static void PrintStackFramePrefix(Intern
void StackTrace::PrintStack(const uptr *addr, uptr size,
SymbolizeCallback symbolize_callback) {
- if (addr == 0) {
- Printf("<empty stack>\n\n");
+ if (addr == 0 || size == 0) {
+ Printf(" <empty stack>\n\n");
return;
}
MemoryMappingLayout proc_maps(/*cache_enabled*/true);
More information about the llvm-commits
mailing list