29 const int bt_depth = 100;
32 static thread_local
int exctrace_last_depth = 0;
33 static thread_local
void* exctrace_last_trace[bt_depth];
54 int ncopy =
std::min (exctrace_last_depth, max_depth);
55 std::copy (exctrace_last_trace, exctrace_last_trace+ncopy, trace);
67 exctrace_last_depth =
backtrace (exctrace_last_trace, bt_depth);
68 old_throw (thrown_exception, tinfo,
dest);
86 old_throw = (
throwfn*)(
long)dlsym (RTLD_NEXT,
"__cxa_throw");