Commit 88f115dc authored by Jan Möbius's avatar Jan Möbius

Output more information on crash



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18440 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e3401efc
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
......@@ -166,6 +166,7 @@ void backtrace()
for(int i = 0; i < size; i++)
std::cerr << i << ": " << strings[i] << std::endl;
free(strings);
}
#endif
......@@ -205,6 +206,14 @@ void segfaultHandling (int) {
#endif
std::cerr << "Trying to get additional information (This might fail if the memory is corrupted)." << std::endl;
if (OpenFlipper::Options::gui()) {
for ( unsigned int i = 0 ; i < 4 ; ++i) {
std::cerr << "DrawMode Viewer "<< i << " " << PluginFunctions::drawMode(i).description() << std::endl;
}
}
std::abort();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment