How to get a stream approved in gdb

When some assert () fails, gdb breaks, but does not display an intermittent stream. In the case of a signal (e.g. segfault), it works fine. Is there an easy way to find out which threads have just been interrupted?

Esp., Here I am using Xcode.

+3
source share
1 answer

You can write your own assertmarco, which ships SIGSEGVinstead SIGABRT.

#define assert(check) do { if(!(check)) kill (getpid(), SIGSEGV); } while(0)
0
source

Source: https://habr.com/ru/post/1728331/


All Articles