0

编辑:我的主要目标是模仿 OlyDbg 对 windows exe 所做的反编译,并允许您逐步设置断点并保存修改。

使用 gdb,我可以调试运行的应用程序

gdb my_app.app
....
(gdb) run

是否有使用 xCode 获得此功能的等效方法,我已经编辑了调试方案(产品 > 编辑方案 > 调试 > 信息选项卡 > 设置应用程序

然而,调试器只显示运行 my_app.app 的问题,没有其他任何东西,没有堆栈跟踪或任何东西。gdb 中出现了类似的问题

(gdb) run
Starting program: /Applications/my_app.app/Contents/MacOS/my_app
Reading symbols for shared libraries ++++++++++++++++++++++.................................................................................................................................................. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ......... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program exited normally.

当 gui 确实弹出时,显然有一个正在运行的应用程序,但有关堆栈跟踪的信息。也许我正在寻找错误的东西,因为我试图通过 OlyDbg 模拟 Windows 上可用的内容,即使用调试器和反汇编器启动应用程序并查看堆栈并保存断点

4

0 回答 0