Getting a backtrace out of an event handler
in my QApplication, some exception is thrown from inside an event handler. Now, Qt told me to reimplement QApplication::notify(), which I did. There I can now catch that exception, but I would rather be able to start debugging at that point. Since the exception has been rethrown, my backtrace looks not very helpful:
0 raise 0x7ffff4e64e97 1 abort 0x7ffff4e661da 2 __gnu_cxx::__verbose_terminate_handler() 0x7ffff57380bd 3 ?? 0x7ffff5735f06 4 std::terminate() 0x7ffff5735f51 5 __cxa_rethrow 0x7ffff57361b6 6 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) 0x7ffff5d804f9 7 QCoreApplication::exec() 0x7ffff5d85769 8 main main.cpp 16 0x40be24
Is there any way of getting a debugger to start with the original exception's backtrace?
Thanks a lot,