diff options
Diffstat (limited to 'openvpn/src/openvpn/breakpad.cpp')
-rw-r--r-- | openvpn/src/openvpn/breakpad.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/openvpn/src/openvpn/breakpad.cpp b/openvpn/src/openvpn/breakpad.cpp deleted file mode 100644 index cfcc10a8..00000000 --- a/openvpn/src/openvpn/breakpad.cpp +++ /dev/null @@ -1,29 +0,0 @@ - -#include "breakpad.h" -#include "client/linux/handler/exception_handler.h" - - -static -bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, - void* context, - bool succeeded) { - printf("Dump path: %s\n", descriptor.path()); - fflush(stdout); - fflush(stderr); - return succeeded; -} - -static google_breakpad::MinidumpDescriptor* desc; -static google_breakpad::ExceptionHandler* eh; - -void breakpad_setup(void) -{ - printf("Initializing Google Breakpad!\n"); - desc = new google_breakpad::MinidumpDescriptor("/data/data/de.blinkt.openvpn/cache"); - eh = new google_breakpad::ExceptionHandler(*desc, NULL, DumpCallback, NULL, true,-1); -} - -void breakpad_dodump(void) -{ - eh->WriteMinidump(); -} |