Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone gdb断点不工作_Iphone_Ios_Debugging_Gdb_Reverse Engineering - Fatal编程技术网

iphone gdb断点不工作

iphone gdb断点不工作,iphone,ios,debugging,gdb,reverse-engineering,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

我的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)
Tester ui iPhone:/tmp root#uname-a
Darwin Tester ui iPhone 11.0.0 Darwin内核版本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
测试仪ui iPhone:/tmp根目录#gdb测试
GNU gdb 6.3.50.20050815-cvs(2011年5月20日星期五08:08:42 UTC)
版权所有2004免费软件基金会。
GDB是自由软件,受GNU通用公共许可证的保护,您是
欢迎在特定条件下更改和/或分发副本。
键入“显示复制”以查看条件。
GDB绝对没有保修。有关详细信息,请键入“显示保修”。
此GDB配置为“-host=arm-apple-darwin9--target=”。。。
读取共享库的符号。完成
(gdb)b干管
0x2d2e处的断点1
(gdb)r
启动程序:/private/var/tmp/test
语法:/private/var/tmp/test
程序已退出,代码为01。
(gdb)

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

例如,您希望附加到水果忍者游戏。附加时,您需要附加到二进制部分,该二进制部分并不总是与应用程序名称相同

附果

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

连接后,可以使用设置断点

b*0x00123456

或者如果你有函数名

b函数()

如果你遇到任何碰撞,试试这个

处理SIGKILL停止