【问题标题】:iphone gdb breakpoint is not workingiphone gdb断点不起作用
【发布时间】:2012-02-19 15:42:48
【问题描述】:

我的 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)

【问题讨论】:

    标签: iphone ios debugging gdb reverse-engineering


    【解决方案1】:

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

    例如,您想附加到 Fruit Ninja 游戏。附加时,您需要附加到与应用名称不同的二进制部分。

    附上水果

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

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

    b *0x00123456

    或者如果你有函数名

    b 函数()

    如果你遇到任何崩溃,试试这个

    处理 SIGKILL 停止

    【讨论】:

      猜你喜欢
      • 2017-02-11
      • 1970-01-01
      • 1970-01-01
      • 2012-03-11
      • 1970-01-01
      • 2012-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多