Kaydet (Commit) 8ab005af authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Avoid pain when using selective debuginfo

Compile in the DbgUnhandledException function always.

Change-Id: I302954598e599e8db71967974b18ade54ca2de13
üst 1b082cdf
......@@ -27,10 +27,12 @@
#include <boost/current_function.hpp>
#define OSL_UNUSED( expression ) \
(void)(expression)
#include <tools/toolsdllapi.h>
#define OSL_UNUSED( expression ) \
(void)(expression)
TOOLS_DLLPUBLIC void DbgUnhandledException(const ::com::sun::star::uno::Any& caughtException, const char* currentFunction, const char* fileAndLineNo);
#if OSL_DEBUG_LEVEL > 0
#include <com/sun/star/configuration/CorruptedConfigurationException.hpp>
......@@ -38,10 +40,6 @@
#include <osl/diagnose.h>
#include <osl/thread.h>
#include <boost/current_function.hpp>
#include <typeinfo>
#include <tools/toolsdllapi.h>
TOOLS_DLLPUBLIC void DbgUnhandledException(const ::com::sun::star::uno::Any& caughtException, const char* currentFunction, const char* fileAndLineNo);
/** reports a caught UNO exception via OSL diagnostics
......
......@@ -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: */
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