Skip to content

Commit 3bbf0fe

Browse files
more feedback
1 parent 6242cd9 commit 3bbf0fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ captureStackTrace(void *, std::type_info *tinfo, void (*)(void *)) KEEP_FUNCTION
7878
{
7979
SENTRY_ASYNC_SAFE_LOG_TRACE("Entering captureStackTrace");
8080

81+
// We handle NSExceptions in SentryCrashMonitor_NSException.
8182
if (tinfo != nullptr && strcmp(tinfo->name(), "NSException") == 0) {
8283
return;
8384
}
85+
8486
if (g_captureNextStackTrace) {
8587
sentrycrashsc_initSelfThread(&g_stackCursor, 2);
8688
}
@@ -101,6 +103,8 @@ __cxa_throw(
101103
SENTRY_ASYNC_SAFE_LOG_TRACE("Entering __cxa_throw");
102104

103105
static cxa_throw_type orig_cxa_throw = NULL;
106+
107+
// Fallback if swap_cxa_throw is disabled.
104108
if (sentrycrashct_is_cxa_throw_swapped() == false) {
105109
captureStackTrace(thrown_exception, tinfo, dest);
106110
}

0 commit comments

Comments
 (0)