iphone Xcode 3.1.4 3.1.2 SDK,观察点不起作用?

发布于 2024-08-08 14:40:37 字数 209 浏览 4 评论 0原文

如果我尝试设置观察点,则会收到 gdb 错误:

“ 如果没有“Z2”(写入观察点)数据包,则无法清除硬件观察点 “

然后它似乎损坏了设备(在重新启动设备时,它抱怨操作系统对于 SDK 来说太旧了,即使它是操作系统 3.1.2)。

我有一个需要追踪的错误,这确实很容易追踪失去了一个观察点,所以这真的很痛苦

有人知道观察点是否应该起作用吗?

If I try to set a watchpoint I get a gdb error:

"
can't clear hardware watchpoints without the 'Z2' (write-watchpoint) packet
"

Then it seems to corrupt the device (on restarting the device it complains that the OS is too old for the SDK, even though it's OS 3.1.2).

I've got a bug to track down that really would be easy to track down with a watchpoint so this really is a pain.

Anybody know if watchpoints are supposed to work? How to get them to work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绾颜 2024-08-15 14:40:37

不幸的是,这是 OS 3.1.2 中的一个已知错误。有传言称新的 3.1.3 版本即将推出,但我不知道这是否会解决这个问题。

Unfortunately this is a known bug in OS 3.1.2. There's rumour of a new 3.1.3 build around the corner, but I don't know if that will fix this problem.

若相惜即相离 2024-08-15 14:40:37

我意识到这是一篇非常老的帖子,但是我刚刚在尝试使用在 OS X 10.7.3 Lion 上运行的 XCode V4.3.2 (4E2002) 设置观察点时收到了相同的错误消息。我找到了以下链接 这解释了该消息
“如果没有 'Z2'(写入观察点)数据包,则无法清除硬件观察点” 表示目标计算机不具备所需的硬件支持。对我来说,这意味着我需要在 iPhone 模拟器下运行,而不是直接在 iPhone 4 上运行。还要注意,最新版本的 XCode 4.3.2 默认为 (LLDB) 调试器,在 XCode 版本中不支持设置观察点。您必须在产品:编辑方案菜单中将调试器设置为GDB。在方案编辑对话框中,将“调试器”字段下拉菜单设置为GDB

I realize this is a very old post however I just got this same error message trying to set a watchpoint with XCode V4.3.2 (4E2002) running on OS X 10.7.3 Lion. I found the following link which explained that the message
"can't clear hardware watchpoints without the 'Z2' (write-watchpoint) packet " indicates that the target machine doesn't have the needed hardware support. For me what this meant was that I needed to run under the iPhone Simulator instead of directly on iPhone 4. Also be aware that the latest version of XCode 4.3.2 defaults to (LLDB) debugger which in the XCode version does not support setting watchpoints. You must set debugger to GDB in menu Product:Edit Scheme. In the scheme edit dialog set the Debugger field pulldown to GDB.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文