Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / functionalities / postmortem / minidump-new / install_breakpad.cpp
blobc34ac17128fac15d4c4f3642962acbf7dc09cd47
1 #include "client/linux/handler/exception_handler.h"
3 static bool dumpCallback(const google_breakpad::MinidumpDescriptor &descriptor,
4 void *context, bool succeeded) {
5 return succeeded;
8 google_breakpad::ExceptionHandler *eh;
10 void InstallBreakpad() {
11 google_breakpad::MinidumpDescriptor descriptor("/tmp");
12 eh = new google_breakpad::ExceptionHandler(descriptor, NULL, dumpCallback,
13 NULL, true, -1);
16 void WriteMinidump() { eh->WriteMinidump(); }