为什么GDB调试器不断冻结Xcode 4? [英] Why does GDB debugger constantly freeze Xcode 4?

查看:148
本文介绍了为什么GDB调试器不断冻结Xcode 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用摄像头Feed处理iPhone项目,并通过OpenGL着色器运行它以将效果应用于它。但是,每次我只是在代码中创建一个新的GLfloat时,调试器会在启动时冻结...我无法复制和粘贴文本,因为整个XCode都冻结了,但我已经从一个日志文件:

  GNU gdb 6.3.50-20050815(Apple版本gdb-1518)(Sat Feb 12 02:56:02 UTC 2011)
版权所有2004自由软件基金会,Inc.
GDB是GNU通用公共许可证所涵盖的免费软件,您可以随时更改和/或分发它在某些条件下。
输入show copying查看条件。
GDB绝对没有担保。输入显示保修以获取详细信息。
这个GDB配置为--host = x86_64-apple-darwin --target = arm-apple-darwin.2#b2a16f854957b341 ^ 2 @ 43Xcode.IDEFoundation.ConsoleAdaptor.Debugger17tty / dev / ttys000
(gdb)

手机尚未冻结,因为我可以按主页按钮并继续做其他的东西。然而,Xcode 4已经完全冻结,运行在99%CPU的沙滩球,我必须强制退出并重新启动它。

然而...真奇怪的事情我有iPhone 3GS,当我借用某人的iPhone 4时,它会编译并运行正常。当我切换回iPhone 3GS时,仅适用于第一次的时间......此后,它会再次冻结。



是这可能是我正在做的事情,还是另一个XCode 4错误?我想尝试将调试器切换到LLDB,但是这并没有出现在Scheme窗口的下拉列表中...即使Xcode用户指南指出GDB和LLDB都可用:



http:/ /developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html



谢谢!

解决方案

尝试让终端打开,并在程序生成并开始运行时在FOREGROUND(在XCODE的顶部)。 b
$ b

另外,如果可能,请尝试下载xcode 4.1。这似乎解决了这个烦人的问题,并且我可以再次使用调试器!


This is a really weird bug...

I'm working on an iPhone project using the camera feed and running it through an OpenGL shader to apply effects to it. However, every time I simply create a new GLfloat in the code, the debugger freezes when launched... I can't copy and paste the text because the whole of XCode freezes up, but I've cobbled it together from one of the log files:

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".2#b2a16f854957b341^2@43"Xcode.IDEFoundation.ConsoleAdaptor.Debugger17"tty /dev/ttys000
(gdb) 

The phone has not frozen, because I can hit the home button and carry on doing other stuff on it. However, Xcode 4 has completely frozen with a beachball running at 99% CPU, and I have to Force Quit and start it again.

However... The really strange thing is I have an iPhone 3GS, and when I borrow someone's iPhone 4 it compiles and runs fine. When I switch back to the iPhone 3GS, it's fine for the first time only... After that, it freezes constantly again.

Is this possibly something I am doing, or is it yet another XCode 4 bug? I wanted to try switching the debugger to LLDB, but that doesn't appear in my dropdown list in the Scheme window... Even though the Xcode User Guide states that both GDB and LLDB are available:

http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html

Thanks!

解决方案

Try to have terminal open, AND IN THE FOREGROUND (ON TOP OF XCODE) when the program builds and begins running.

Also, if possible, try downloading xcode 4.1. This seemed to fix this annoying problem for good, AND I can actually use the debugger again !

这篇关于为什么GDB调试器不断冻结Xcode 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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