mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-22 11:09:40 +00:00
gdb detection doesn't seem to work for the forked process
This commit is contained in:
parent
20d806b40c
commit
f990ba09f0
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ int main(int argc, char**argv)
|
||||||
{
|
{
|
||||||
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX || OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX || OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
||||||
// Unix crash catcher
|
// 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 };
|
int s[5] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS, SIGABRT };
|
||||||
cc_install_handlers(argc, argv, 5, s, "crash.log", NULL);
|
cc_install_handlers(argc, argv, 5, s, "crash.log", NULL);
|
||||||
|
|
Loading…
Reference in a new issue