Re:When noexcept?
by pjc50 on Thursday December 15, 2016 @11:56AM
(#13186003)
And this is why the people who wrote this code base I'm maintaining have manual stack-tracing code for the application - so whenever an exception is constructed of certain types we can dump its call location into the logs. Otherwise exceptions just appear as weird nonlocal flow control that loses information.
GCC users have backtrace_symbols() for this.
(It was an interesting exercise to see how much of the ARM stack unwinding I could do in C++ rather than assembler; I managed it with only one asm instruction to get the link register and a lot of instruction-decoding C++)
GCC users have backtrace_symbols() for this.
(It was an interesting exercise to see how much of the ARM stack unwinding I could do in C++ rather than assembler; I managed it with only one asm instruction to get the link register and a lot of instruction-decoding C++)