Index: source/Utility/LLDBAssert.cpp =================================================================== --- source/Utility/LLDBAssert.cpp +++ source/Utility/LLDBAssert.cpp @@ -8,8 +8,10 @@ //===----------------------------------------------------------------------===// #include "lldb/Utility/LLDBAssert.h" -#include "lldb/Core/StreamString.h" -#include "lldb/Host/Host.h" + +#include + +#include "llvm/Support/Signals.h" using namespace lldb_private; @@ -24,15 +26,13 @@ ; else { - StreamString stream; - stream.Printf("Assertion failed: (%s), function %s, file %s, line %u\n", - expr_text, - func, - file, - line); - stream.Printf("backtrace leading to the failure:\n"); - Host::Backtrace(stream, 1000); - stream.Printf("please file a bug report against lldb reporting this failure log, and as many details as possible\n"); - printf("%s\n", stream.GetData()); + fprintf(stderr, "Assertion failed: (%s), function %s, file %s, line %u\n", + expr_text, + func, + file, + line); + fprintf(stderr, "backtrace leading to the failure:\n"); + llvm::sys::PrintStackTrace(stderr); + fprintf(stderr, "please file a bug report against lldb reporting this failure log, and as many details as possible\n"); } }