From f990ba09f01edd2cfe4936838d6787e580b74d8c Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 16 Nov 2013 20:55:41 +0100 Subject: [PATCH] gdb detection doesn't seem to work for the forked process --- apps/openmw/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index 4f77c1b1a..a36b6e12f 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -248,7 +248,7 @@ int main(int argc, char**argv) { #if OGRE_PLATFORM == OGRE_PLATFORM_LINUX || OGRE_PLATFORM == OGRE_PLATFORM_APPLE // Unix crash catcher - if (!is_debugger_attached()) + if ((argc == 2 && strcmp(argv[1], "--cc-handle-crash") == 0) || !is_debugger_attached()) { int s[5] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS, SIGABRT }; cc_install_handlers(argc, argv, 5, s, "crash.log", NULL);