X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cc;h=737214da96347dc62763ff4750117b18d406902a;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=4c74f6cda185694ee17aed1976af5e381748e600;hpb=d2459b6c8249291588fd3d0d125ed3d38e003b55;p=senf.git diff --git a/Utils/Exception.cc b/Utils/Exception.cc index 4c74f6c..737214d 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