Author: tfiala Date: Fri Oct 9 20:26:47 2015 New Revision: 249930 URL: http://llvm.org/viewvc/llvm-project?rev=249930&view=rev Log: Fixup log enable --stack so it works on Linux.
The underlying raw_string_stream buffer was not being flushed after asking llvm to collect the backtrace. This worked fine on OS X but was failing to print anything on Linux. Modified: lldb/trunk/source/Core/Log.cpp Modified: lldb/trunk/source/Core/Log.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Log.cpp?rev=249930&r1=249929&r2=249930&view=diff ============================================================================== --- lldb/trunk/source/Core/Log.cpp (original) +++ lldb/trunk/source/Core/Log.cpp Fri Oct 9 20:26:47 2015 @@ -143,6 +143,7 @@ Log::VAPrintf(const char *format, va_lis std::string back_trace; llvm::raw_string_ostream stream(back_trace); llvm::sys::PrintStackTrace(stream); + stream.flush(); header.PutCString(back_trace.c_str()); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits