| 277 | } |
| 278 | |
| 279 | static void SignalHandler(int signum) |
| 280 | { |
| 281 | // The previous (default) behavior is restored for the signal. |
| 282 | // Unless this is done first thing in the signal handler we'll |
| 283 | // be stuck in a signal-handler loop forever. |
| 284 | signal(signum, 0); |
| 285 | |
| 286 | fflush(stdout); |
| 287 | bool is_debug_mode = dLib::IsDebugMode(); |
| 288 | dLib::SetDebugMode(true); |
| 289 | |
| 290 | CheckConsoleNeeded(is_debug_mode); |
| 291 | g_DumpWritten = true; |
| 292 | GenerateCallstack(0); |
| 293 | |
| 294 | dLib::SetDebugMode(is_debug_mode); |
| 295 | } |
| 296 | |
| 297 | static void InstallOnSignal(int signum) |
| 298 | { |
nothing calls this directly
no test coverage detected