Can I put debug hooks in Qt's threading error messages?

431 Views Asked by At

I think I've broken the rules on thread affinity somewhere in my Qt C++ application.

I'm getting lots of messages like this:

QBasicTimer::stop: Failed. Possibly trying to stop from a different thread
QBasicTimer::start: Timers cannot be started from another thread

I am using DDD/GDB. Can I insert some kind of trap which will catch these errors and give me a backtrace? Ideally suspending all other threads in the meantime?

I tried to halt on writing to stdout (b write if 1==$rdi as per this) but that didn't work.

0

There are 0 best solutions below