From 0aa5a04c6084d12eb7b4f7a9d0f749125a8d33cd Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Wed, 28 Jul 2021 08:42:48 +1000 Subject: Change deprecated Debugger call to currently supported SIGTRAP. --- cocoa/PlatCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa') diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index aaa8714c4..a8c4b86a1 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -2385,8 +2385,8 @@ void Platform::Assert(const char *c, const char *file, int line) noexcept { snprintf(buffer, sizeof(buffer), "Assertion [%s] failed at %s %d\r\n", c, file, line); Platform::DebugDisplay(buffer); #ifdef DEBUG - // Jump into debugger in assert on Mac (CL269835) - ::Debugger(); + // Jump into debugger in assert on Mac + pthread_kill(pthread_self(), SIGTRAP); #endif } -- cgit v1.2.3