lldb:查看macOS上的所有寄存器

时间:2019-02-07 03:16:08

标签: macos gdb lldb

gdb的{​​{1}}与info registers等效吗? 我正在尝试类似

lldb

添加$ lldb /path/to/hello_world (lldb) target create "/Users/kakyo/Desktop/LearnAssembly/hello_world/Debug/hello_world" Current executable set to '/Users/kakyo/Desktop/LearnAssembly/hello_world/Debug/hello_world' (x86_64). (lldb) register read error: invalid process 或尝试任何其他可执行文件或.app捆绑包都会给我同样的sudo错误。

这是怎么了?

我检查了许多备忘单,却找不到正确的命令或顺序。

1 个答案:

答案 0 :(得分:2)

您尚未启动或附加到进程,因此没有要读取的寄存器。

键入run以启动可执行文件。

相关问题