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
This commit is contained in:
digit@chromium.org 2012-08-20 20:22:05 +00:00
parent 5f57e963d0
commit d270dcfa18
4 changed files with 16 additions and 6 deletions

View file

@ -30,14 +30,14 @@
#include <stdio.h>
#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;
}