目标 C:在哪里可以找到在gdb中?
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
malloc_history 仅适用于模拟器。您的日志表明您正在设备上执行此操作。
malloc_history works only in simulator. Your logs say that you are doing it on device.