Skip to content

Commit 415b8aa

Browse files
authored
Enable continuing after assert in interpreter on macOS (#121005)
This change changes __builtin_trap() that we use to break into the debugger on assert to __builtin_debugtrap() on macOS. The former doesn't allow continuing after the assert while the latter does.
1 parent fbe5d82 commit 415b8aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/coreclr/interpreter/compiler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8734,6 +8734,10 @@ extern "C" void assertAbort(const char* why, const char* file, unsigned line)
87348734
#ifdef _MSC_VER
87358735
__debugbreak();
87368736
#else // _MSC_VER
8737+
#ifdef TARGET_APPLE
8738+
__builtin_debugtrap();
8739+
#else // TARGET_APPLE
87378740
__builtin_trap();
8741+
#endif // TARGET_APPLE
87388742
#endif // _MSC_VER
87398743
}

0 commit comments

Comments
 (0)