Is there any way in gcc/linux to have a user-defined function called immediately after any C++ throw statement executes, but before the stack is unwound to the catch? (I want to capture a stacktrace.)
(In gdb I can write catch throw
. Anyway to do that programmatically short of a compiler extension?)