我试图通过使用gdb来运行ios应用程序。
我得到了这个应用程序的进程ID
iPod:/Applications/AntiPiracyDemo.app root# ps ax | grep Anti
808 ?? Ss 0:00.94 /Applications/AntiPiracyDemo.app/AntiPiracyDemo
826 s001 R+ 0:00.00 grep Anti
iPod:/Applications/AntiPiracyDemo.app root#
将进程附加到gdb并尝试设置一个名为isJailbroken
的方法的断点,如下所示。
iPod:/Applications/AntiPiracyDemo.app root# gdb -q -p 808
/private/var/stash/Applications/AntiPiracyDemo.app/808: No such file or directory
Attaching to process 808.
0x3b3f1eb4 in ?? ()
(gdb) b -[AntiPiracyViewController isJailbroken]
No symbol table is loaded. Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb)
gdb问了一些问题:0x3b3f1eb4 in ??
,还说No symbol table is loaded.
任何人都可以告诉我需要附加哪个文件,我该怎么做? (对于gdb加载符号表)
谢谢!