Add high level API for breakpad on iOS.

The new API allows to automatically upload repports to the crash server when the application restarts.

 This change also:
 - Correct a bug on the test for correct alignment of the abrt signal handler
 - Add user friendly information on crashes for SIGABRT and NSException
Review URL: https://breakpad.appspot.com/361001

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@935 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
qsr@chromium.org 2012-03-13 20:02:40 +00:00
parent 7facb6a6fb
commit 1e8d2d5a4c
7 changed files with 402 additions and 11 deletions

View file

@ -29,6 +29,7 @@
#include "client/ios/handler/ios_exception_minidump_generator.h"
#include "google_breakpad/common/minidump_exception_mac.h"
#include "client/minidump_file_writer-inl.h"
#include "processor/scoped_ptr.h"
@ -37,7 +38,7 @@ namespace {
const uint32_t kExpectedFinalFp = 4;
const uint32_t kExpectedFinalSp = 0;
const int kExceptionType = EXC_SOFTWARE;
const int kExceptionCode = 0xDEADBEEF;
const int kExceptionCode = MD_EXCEPTION_CODE_MAC_NS_EXCEPTION;
// Append the given 4 bytes value to the sp position of the stack represented
// by memory.