11 #include "llvm/Support/Format.h"
12 #include "llvm/Support/Signals.h"
13 #include "llvm/Support/raw_ostream.h"
19 const char *func,
const char *file,
21 if (LLVM_LIKELY(expression))
25 assert(
false &&
"lldb_assert failed");
30 errs() << format(
"Assertion failed: (%s), function %s, file %s, line %u\n",
31 expr_text, func, file, line);
32 errs() <<
"backtrace leading to the failure:\n";
33 llvm::sys::PrintStackTrace(errs());
34 errs() <<
"please file a bug report against lldb reporting this failure "
35 "log, and as many details as possible\n";
A class that represents a running process on the host machine.
void lldb_assert(bool expression, const char *expr_text, const char *func, const char *file, unsigned int line)