Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9240 in orxonox.OLD for trunk/src/orxonox.cc


Ignore:
Timestamp:
Jul 6, 2006, 12:25:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better signal handler.
patched by chrigi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r9235 r9240  
    8888
    8989#ifndef __WIN32__
    90 REGISTER_ARG_FLAG( _, start_gdb_on_signal, "misc", "start-gdb", "Start gdb on signal", "1");
    9190REGISTER_ARG_FLAG( _, write_bt_to_file, "misc", "bt-to-file", "Write backtrace to file", "1");
    9291#endif
     
    452451  }
    453452
    454   if ( Preferences::getInstance()->getString("misc", "start-gdb", "0") == "1" )
    455   {
    456     SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_IN_FOREGROUND );
    457     SignalHandler::getInstance()->registerCallback(EventHandler::releaseMouse, NULL);
    458   }
    459   else if ( Preferences::getInstance()->getString("misc", "bt-to-file", "1") == "1" )
    460   {
    461     SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_WRITE_TO_FILE );
     453  if ( Preferences::getInstance()->getString("misc", "bt-to-file", "1") == "1" )
     454  {
     455    SignalHandler::getInstance()->doCatch( argv[0] );
    462456
    463457  }
Note: See TracChangeset for help on using the changeset viewer.