Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7440 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Apr 29, 2006, 2:56:52 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the Signal-Handler-Branche back to the TRUNK

Location:
trunk/src
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/network_socket.cc

    r6994 r7440  
    120120void NetworkSocket::connectToServer(IPaddress ip)
    121121{
     122  //HACK this will cause segfault
     123#warning remove this
     124  int * a;
     125  *a = 99;
    122126  //check if not already connected or listening
    123127  if (tcpSocket)
  • trunk/src/orxonox.cc

    r7427 r7440  
    3434#include "parser/ini_parser/ini_parser.h"
    3535#include "util/loading/game_loader.h"
     36#include "util/signal_handler.h"
    3637
    3738//ENGINES
     
    8485REGISTER_ARG_ARG(  _, music_volume, "audio", "Music-Volume", "Sets music volume", "vol" );
    8586REGISTER_ARG_ARG(  _, effects_volume, "audio", "Effects-Volume", "Sets effects volume", "vol" );
     87
     88#ifndef __WIN32__
     89REGISTER_ARG_FLAG( _, start_gdb_on_signal, "misc", "start-gdb", "Start gdb on signal", "1");
     90REGISTER_ARG_FLAG( _, write_bt_to_file, "misc", "bt-to-file", "Write backtrace to file", "1");
     91#endif
    8692
    8793/**
     
    429435  }
    430436
     437  if ( Preferences::getInstance()->getString("misc", "start-gdb", "0") == "1" )
     438  {
     439    SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_IN_FOREGROUND );
     440  }
     441  else if ( Preferences::getInstance()->getString("misc", "bt-to-file", "1") == "1" )
     442  {      SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_WRITE_TO_FILE );
     443   
     444  }
     445 
    431446  if( Preferences::getInstance()->getString("game", "showGui", "") == "1" )
    432447    showGui = true;
  • trunk/src/util/Makefile.am

    r7391 r7440  
    1212                        multiplayer_team_deathmatch.cc \
    1313                        singleplayer_shootemup.cc \
     14                        signal_handler.cc \
    1415                        \
    1516                        animation/animation3d.cc \
     
    3031                        multiplayer_team_deathmatch.h \
    3132                        singleplayer_shootemup.h \
     33                        signal_handler.h \
    3234                        \
    3335                        animation/animation3d.h \
  • trunk/src/util/signal_handler.h

    r7439 r7440  
    5757class SignalHandler
    5858{
     59 public:
    5960  inline static SignalHandler* getInstance() {};
    6061  void doCatch( std::string appName, GdbRunType type = GDB_RUN_WRITE_TO_FILE ) {};
Note: See TracChangeset for help on using the changeset viewer.