ios/mac: Add exception code for Crashpad uncaught exceptions.

Change-Id: I4c6a6fb353cacb09710c579e59332d70d1e801a8
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3093129
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Justin Cohen 2021-10-14 13:04:32 -04:00 committed by Nelson Billing
parent 2d0d117749
commit d93f6b9393
2 changed files with 5 additions and 0 deletions

View file

@ -69,6 +69,8 @@ typedef enum {
/* EXC_RPC_ALERT */
MD_EXCEPTION_MAC_SIMULATED = 0x43507378
/* Fake exception code used by Crashpad's SimulateCrash ('CPsx'). */
MD_NS_EXCEPTION_SIMULATED = 0x43506E78
/* Fake exception code used by Crashpad's uncaught exceptions ('CPnx'). */
} MDExceptionMac;
/* For (MDException).exception_flags. Breakpad minidump extension for Mac OS X

View file

@ -1138,6 +1138,9 @@ string MinidumpProcessor::GetCrashReason(Minidump* dump, uint64_t* address) {
case MD_EXCEPTION_MAC_SIMULATED:
reason = "Simulated Exception";
break;
case MD_NS_EXCEPTION_SIMULATED:
reason = "Uncaught NSException";
break;
}
break;
}