1

我想我已经在我的 Qt C++ 应用程序的某个地方打破了线程亲和性的规则。

我收到很多这样的消息:

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

我正在使用 DDD/GDB。我可以插入某种陷阱来捕获这些错误并给我回溯吗?理想情况下同时暂停所有其他线程?

我试图停止写入标准输出(b write if 1==$rdi根据this),但这没有用。

4

0 回答 0