Many OS X crash reports have this section like in a quote below
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information: objc[1769]: garbage collection is OFF
Terminating app due to uncaught exception 'InvalidX', reason: 'X can't be 0'
First throw call stack:
In my application there's custom crashes handling. All I can is to handle signals, nothing else. Where can I retrieve such useful information?
I found that you can set the message to show in built-in crash reports
static const char *__crashreporter_info__ = 0;
asm(".desc __crashreporter_info__, 0x10");
But I want not to set, but retrieve that information in my custom signal and exception handler.