From d270dcfa18acc0b9d65798a1f271f9859552244e Mon Sep 17 00:00:00 2001 From: "digit@chromium.org" Date: Mon, 20 Aug 2012 20:22:05 +0000 Subject: Fix Android build. This patch fixes the Android build, and updates the NDK test application to use the new Linux ExceptionHandler API. + Use string insted of std::string in minidump_descriptor.h Review URL: https://breakpad.appspot.com/433002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1016 4c0a9323-5329-0410-9bdc-e9ce6186880e --- android/sample_app/jni/test_breakpad.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'android/sample_app/jni') diff --git a/android/sample_app/jni/test_breakpad.cpp b/android/sample_app/jni/test_breakpad.cpp index 6c18edfb..9c4ebbb1 100644 --- a/android/sample_app/jni/test_breakpad.cpp +++ b/android/sample_app/jni/test_breakpad.cpp @@ -30,14 +30,14 @@ #include #include "client/linux/handler/exception_handler.h" +#include "client/linux/handler/minidump_descriptor.h" namespace { -bool DumpCallback(const char* dump_path, - const char* minidump_id, +bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, void* context, bool succeeded) { - printf("Dump path: %s/%s.dmp\n", dump_path, minidump_id); + printf("Dump path: %s\n", descriptor.path()); return succeeded; } @@ -49,7 +49,9 @@ void Crash() { } // namespace int main(int argc, char* argv[]) { - google_breakpad::ExceptionHandler eh(".", NULL, DumpCallback, NULL, true); + google_breakpad::MinidumpDescriptor descriptor("."); + google_breakpad::ExceptionHandler eh(descriptor, NULL, DumpCallback, + NULL, true, -1); Crash(); return 0; } -- cgit v1.2.1