brintos

brintos / llvm-project-archived public Read only

0
0
Text · 525 B · c34ac17 Raw
17 lines · cpp
1#include "client/linux/handler/exception_handler.h"2 3static bool dumpCallback(const google_breakpad::MinidumpDescriptor &descriptor,4                         void *context, bool succeeded) {5  return succeeded;6}7 8google_breakpad::ExceptionHandler *eh;9 10void InstallBreakpad() {11  google_breakpad::MinidumpDescriptor descriptor("/tmp");12  eh = new google_breakpad::ExceptionHandler(descriptor, NULL, dumpCallback,13                                             NULL, true, -1);14}15 16void WriteMinidump() { eh->WriteMinidump(); }17