From 3bdf30e530457518e033674369ab616cda2bfa38 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 8 Feb 2018 12:19:51 +0100 Subject: [PATCH] function printBacktrace --- src/Utils/Utils_ExceptHandlers.cxx | 47 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/Utils/Utils_ExceptHandlers.cxx b/src/Utils/Utils_ExceptHandlers.cxx index e8778229b..1e96fd0fe 100644 --- a/src/Utils/Utils_ExceptHandlers.cxx +++ b/src/Utils/Utils_ExceptHandlers.cxx @@ -39,29 +39,9 @@ //#define NBLINES_BACKTRACE 64 -void SalomeException () -{ - void *stacklines[64]; - char **stackSymbols; - size_t nbLines; - nbLines = backtrace(stacklines, 64); - stackSymbols = backtrace_symbols(stacklines, nbLines); - std::stringstream txt; - txt << "Salome Exception" << std::endl; - for (int i=0; i