目标C:在哪里可以找到<进程ID>在gdb中? [英] Objective C: Where to find <process id> in gdb?
本文介绍了目标C:在哪里可以找到<进程ID>在gdb中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用NSZombie来调试我的程序。调试器确实返回了带有问题的实例地址,但我不确定在哪里获得运行命令'shell malloc_history
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
所需的pid有人建议我在这种情况下使用的正确pid是什么?我尝试了3298和3298:707,他们都没有工作。
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.
甄oe
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.
推荐答案
malloc_history仅适用于模拟器。你的日志说你正在设备上做这件事。
malloc_history works only in simulator. Your logs say that you are doing it on device.
这篇关于目标C:在哪里可以找到<进程ID>在gdb中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文