Don't make backtrace under win32 -- it seems mingw32 doesn't support that.

This commit is contained in:
Konstantin Isakov 2010-01-17 23:23:49 +03:00
parent 9c3d8de794
commit 199deb8985

View file

@ -7,7 +7,10 @@
#include <cxxabi.h> #include <cxxabi.h>
#include <string> #include <string>
#ifndef __WIN32
#include <execinfo.h> #include <execinfo.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -64,6 +67,8 @@ static void termHandler()
message += "terminate() called without active exception\n"; message += "terminate() called without active exception\n";
} }
#ifndef __WIN32
message += "\nBacktrace:\n"; message += "\nBacktrace:\n";
const size_t maxDepth = 200; const size_t maxDepth = 200;
@ -116,6 +121,8 @@ static void termHandler()
message += '\n'; message += '\n';
} }
#endif
QTemporaryFile file; QTemporaryFile file;
if ( file.open() ) if ( file.open() )