【问题标题】:lldb: View all registers on macOSlldb:查看 macOS 上的所有寄存器
【发布时间】:2019-02-07 03:16:08
【问题描述】:

gdbinfo registerslldb 的等价物是什么? 我正在尝试类似的东西

$ 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

添加 sudo 或尝试任何其他可执行文件或 .app 包都会给我同样的 invalid process 错误。

这里有什么问题?

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

【问题讨论】:

    标签: macos gdb lldb


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2020-01-10
      • 1970-01-01
      • 2016-05-23
      • 1970-01-01
      • 2012-08-11
      • 2012-12-15
      • 2012-11-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多