X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cc;h=b2c750f383c55a27d449c0853fdec59a085b4fa2;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=4c74f6cda185694ee17aed1976af5e381748e600;hpb=d2459b6c8249291588fd3d0d125ed3d38e003b55;p=senf.git diff --git a/Utils/Exception.cc b/Utils/Exception.cc index 4c74f6c..b2c750f 100644 --- a/Utils/Exception.cc +++ b/Utils/Exception.cc @@ -30,7 +30,7 @@ #include #include #include "../config.hh" -#include "impl/demangle.h" +#include "Backtrace.hh" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// @@ -43,30 +43,12 @@ prefix_ void senf::ExceptionMixin::addBacktrace() { void * entries[SENF_DEBUG_BACKTRACE_NUMCALLERS]; unsigned nEntries( ::backtrace(entries, SENF_DEBUG_BACKTRACE_NUMCALLERS) ); - char ** symbols = ::backtrace_symbols(entries, nEntries); - + std::stringstream ss; ss << "\nException at\n"; - for (unsigned i=0; i