diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2021-07-28 08:42:48 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2021-07-28 08:42:48 +1000 |
commit | 0aa5a04c6084d12eb7b4f7a9d0f749125a8d33cd (patch) | |
tree | 2e489e3b5a8e2b25c23a8f506dc11fe123708ba7 | |
parent | 36ba9c53f43531fa78d41bf1c4b94fc5b8da2467 (diff) | |
download | scintilla-mirror-0aa5a04c6084d12eb7b4f7a9d0f749125a8d33cd.tar.gz |
Change deprecated Debugger call to currently supported SIGTRAP.
-rw-r--r-- | cocoa/PlatCocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |