1 // Example source from breakpad's linux tutorial
2 // https://chromium.googlesource.com/breakpad/breakpad/+/master/docs/linux_starter_guide.md
8 #include "client/linux/handler/exception_handler.h"
10 static bool dumpCallback(const google_breakpad::MinidumpDescriptor &descriptor,
11 void *context, bool succeeded) {
12 printf("Dump path: %s\n", descriptor.path());
17 volatile int *a = (int *)(NULL);
21 int main(int argc, char *argv[]) {
22 google_breakpad::MinidumpDescriptor descriptor("/tmp");
23 google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, NULL,
25 printf("pid: %d\n", getpid());