Kaydet (Commit) 8dcbfb8c authored tarafından Noel Grandin's avatar Noel Grandin

demangle context type name in DBG_UNHANDLED_EXCEPTION

Change-Id: I59591d0209ddf2bcf6e57a78dc7999d773b73ae3
Reviewed-on: https://gerrit.libreoffice.org/54805Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8c147078
......@@ -41,6 +41,10 @@
#include <tools/diagnose_ex.h>
#if defined __GLIBCXX__
#include <cxxabi.h>
#endif
#ifdef DBG_UTIL
struct DebugData
......@@ -97,6 +101,11 @@ void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunc
if ( exception.Context.is() )
{
const char* pContext = typeid( *exception.Context.get() ).name();
#if defined __GLIBCXX__
// demangle the type name, not necessary under windows, we already get demangled names there
int status;
pContext = abi::__cxa_demangle( pContext, nullptr, nullptr, &status);
#endif
sMessage += "\n context: ";
sMessage += pContext;
}
......
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