summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-09-08 18:26:02 +0300
committerTor Lillqvist <tml@collabora.com>2015-09-08 19:37:58 +0300
commit8ab005af961709b51398c523516fe61a54ca2131 (patch)
treec3736e4d45ab33a3ba8e21b512f351b1af73b2ca /tools
parent1b082cdfbe8cc9961741a1bb906af810ea129da5 (diff)
Avoid pain when using selective debuginfo
Compile in the DbgUnhandledException function always. Change-Id: I302954598e599e8db71967974b18ade54ca2de13
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index 1d1c8d6cc802..4006b5155876 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -28,12 +28,15 @@
#include <string.h>
#include <stdio.h>
+#include <com/sun/star/configuration/CorruptedConfigurationException.hpp>
#include <com/sun/star/task/ErrorCodeIOException.hpp>
#include <tools/debug.hxx>
#include <rtl/string.h>
#include <sal/log.hxx>
#include <sal/macros.h>
+#include <osl/thread.h>
+#include <typeinfo>
#include <vector>
#include <osl/diagnose.h>
@@ -77,8 +80,6 @@ void* DbgFunc( sal_uInt16 nAction, void* pParam )
#endif
-#if OSL_DEBUG_LEVEL > 0
-
void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo)
{
OString sMessage( "caught an exception!" );
@@ -124,8 +125,4 @@ void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunc
"legacy.osl", fileAndLineNo, "%s", sMessage.getStr());
}
-#endif
-
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */