iphone gdb断点不起作用

时间:2012-01-26 14:53:03

标签: iphone ios debugging gdb reverse-engineering

我的iphone(以及我朋友的iphone)的断点(在gdb中)无效! 我在cydia中下载了gdb 有没有人知道这个问题?

Tester-ui-iPhone:/tmp root# uname -a
Darwin Tester-ui-iPhone 11.0.0 Darwin Kernel Version 11.0.0: Tue Nov  1 20:33:22 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8920X iPhone2,1 arm N88AP Darwin
Tester-ui-iPhone:/tmp root# gdb test
GNU gdb 6.3.50.20050815-cvs (Fri May 20 08:08:42 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=arm-apple-darwin9 --target="...
Reading symbols for shared libraries . done

(gdb) b main
Breakpoint 1 at 0x2d2e
(gdb) r
Starting program: /private/var/tmp/test
Syntax: /private/var/tmp/test <arg>
Program exited with code 01.
(gdb)

1 个答案:

答案 0 :(得分:0)

您是否尝试在特定应用中断点? 如果是这样,您需要首先附加到该过程 附加目标

例如,您想要附加到Fruit Ninja游戏。附加时需要附加到二进制部分,而二进制部分并不总是与应用程序名称相同。

附上水果

或者,您可以搜索进程ID并附加到该进程ID。

连接后,您可以使用

设置断点

b * 0x00123456

或者如果您有函数名称

b function()

如果遇到任何崩溃,请尝试使用

处理SIGKILL停止