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:
parent
5f57e963d0
commit
d270dcfa18
4 changed files with 16 additions and 6 deletions
|
@ -326,11 +326,16 @@ bool ExceptionHandler::HandleSignal(int sig, siginfo_t* info, void* uc) {
|
|||
// This is a public interface to HandleSignal that allows the client to
|
||||
// generate a crash dump. This function may run in a compromised context.
|
||||
bool ExceptionHandler::SimulateSignalDelivery(int sig) {
|
||||
#ifdef __ANDROID__
|
||||
// Android doesn't provide getcontext().
|
||||
return false;
|
||||
#else
|
||||
siginfo_t siginfo;
|
||||
my_memset(&siginfo, 0, sizeof(siginfo_t));
|
||||
struct ucontext context;
|
||||
getcontext(&context);
|
||||
return HandleSignal(sig, &siginfo, &context);
|
||||
#endif
|
||||
}
|
||||
|
||||
// This function may run in a compromised context: see the top of the file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue