目标 C:在哪里可以找到在gdb中?

发布于 2024-11-08 17:59:05 字数 707 浏览 0 评论 0原文

我正在尝试使用 NSZombie 调试我的程序。调试器确实向我返回了存在问题的实例的地址,但是我不确定在哪里获取运行命令“shell malloc_history”所需的 pid

任何人都可以告诉我在这种情况下使用的正确 pid 是什么?我尝试了 3298 和 3298:707,但都不起作用。感谢这里的任何帮助。

振和

2011-05-19 16:57:05.779 CarParkDemon[3298:707] in table view cellforRow Method3
2011-05-19 16:57:05.781 CarParkDemon[3298:707] *** -[CFString retain]: message sent to deallocated instance 0x5d82930
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
(gdb) shell malloc_history 3298:707 0x5d82930
malloc_history cannot examine process 3298 because the process does not exist.

I am trying to debug my program using NSZombie. The debugger did return me the address of the instance with the issue, however I am not sure where to obtain the pid which is required to run the command 'shell malloc_history

Can anyone advise me on what is the correct pid to use in this case? I tried 3298 and 3298:707 and they both didnt work. Appreciate any help here.

Zhen Hoe

2011-05-19 16:57:05.779 CarParkDemon[3298:707] in table view cellforRow Method3
2011-05-19 16:57:05.781 CarParkDemon[3298:707] *** -[CFString retain]: message sent to deallocated instance 0x5d82930
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
(gdb) shell malloc_history 3298:707 0x5d82930
malloc_history cannot examine process 3298 because the process does not exist.

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

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

发布评论

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

评论(1

手长情犹 2024-11-15 17:59:05

malloc_history 仅适用于模拟器。您的日志表明您正在设备上执行此操作。

malloc_history works only in simulator. Your logs say that you are doing it on device.

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