21 Jun
2016
21 Jun
'16
8:42 a.m.
On 21/06/2016 15:51, Ernest Zaslavsky wrote:
If you're on Windows you have dbghelp Win32 functions which are no black art and quite straight forward to use.
Those will generate a stack trace from the current location of a given thread (usually the current thread). That's fine, but not what I was referring to. I meant extracting the stack trace of the original throw point from some place that catches an exception (possibly a top-level uncaught exception handler). That's the black art. It requires either cooperation of the throw point or delving into compiler-specific internals.