I use signal handlers in an Objective-C application to detect fatal errors such as SIGSEGV, SIGBUSetc.
When such a signal rises, I write a log file with a reverse grid and error details (I know that I may have problems reconnecting, but itβs not).
This way, I can find out the next time that the application crashed, and I can ask the user if he wants to fill out an error report.
It works great when I launch the application manually.
But when I run it from Xcode (using GDB), the signal handlers are not called.
I try to install them with signalor sigaction, but there is no difference.
I also checked with info signalswhat these signals are set to pass, that is, they should be passed to the application.
This is not very important, since I only get this problem when debugging my application, but it will be very nice to work with GDB.
Has anyone tested and solved this problem?
source
share