From fa64103aa87a8f0f2a3351bb4a54e93e8ade1082 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 27 Dec 2010 14:34:17 +0200 Subject: better debug output in segfaults and stack overflows in windows --- src/server.cpp | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) (limited to 'src/server.cpp') diff --git a/src/server.cpp b/src/server.cpp index cbe2b932f..05ef13d93 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -40,6 +40,8 @@ void * ServerThread::Thread() DSTACK(__FUNCTION_NAME); + BEGIN_DEBUG_EXCEPTION_HANDLER + while(getRun()) { try{ @@ -51,19 +53,9 @@ void * ServerThread::Thread() catch(con::NoIncomingDataException &e) { } -#if CATCH_UNHANDLED_EXCEPTIONS - /* - This is what has to be done in threads to get suitable debug info - */ - catch(std::exception &e) - { - dstream<