编辑:我的主要目标是模仿OlyDbg对Windows exes进行反编译的功能,并允许您逐步设置断点并保存修改。
使用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上可用的内容,即启动带有调试器和反汇编程序的应用程序并查看堆栈并保存断点