快速的方式来找到什么线程断言在gdb? [英] Quick way to find what thread asserted in gdb?

查看:181
本文介绍了快速的方式来找到什么线程断言在gdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的Cocoa应用程序在代码中打断断言时,gdb给我一个预期的提示,但它在正确的线程中从不(确定,很少)。

When my Cocoa app hits an assertion in the code, gdb gives me a prompt as expected, but it's never (ok, rarely) in the right thread.

我知道我可以使用Xcode的GUI调试器,它使它不那么痛苦,但我认为有一个gdb命令行技巧我不知道

I know I can use Xcode's GUI debugger and it makes it a little less painful, but I'm thinking there has to be a gdb command line trick I don't know.

有更简单的方法找到断言的线程,除了更改每个线程并发出其中

Is there an easier way of finding the thread that asserted other than changing to each thread and issuing where?

推荐答案

(gdb)thread apply all bt

这篇关于快速的方式来找到什么线程断言在gdb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆