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 * * OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen * * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org * * www.openflipper.org *
* * * *
*--------------------------------------------------------------------------- * *--------------------------------------------------------------------------- *
...@@ -166,6 +166,7 @@ void backtrace() ...@@ -166,6 +166,7 @@ void backtrace()
for(int i = 0; i < size; i++) for(int i = 0; i < size; i++)
std::cerr << i << ": " << strings[i] << std::endl; std::cerr << i << ": " << strings[i] << std::endl;
free(strings); free(strings);
} }
#endif #endif
...@@ -205,6 +206,14 @@ void segfaultHandling (int) { ...@@ -205,6 +206,14 @@ void segfaultHandling (int) {
#endif #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(); 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