lldb:查看macOS上的所有寄存器
lldb: View all registers on macOS
gdb
的 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
添加 sudo
或尝试任何其他可执行文件或 .app 包给我相同的 invalid process
错误。
这是怎么回事?
我检查了很多备忘单,但找不到正确的命令或序列。
您尚未启动或附加到进程,因此没有可读取的寄存器。
键入 run
以启动您的可执行文件。
gdb
的 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
添加 sudo
或尝试任何其他可执行文件或 .app 包给我相同的 invalid process
错误。
这是怎么回事?
我检查了很多备忘单,但找不到正确的命令或序列。
您尚未启动或附加到进程,因此没有可读取的寄存器。
键入 run
以启动您的可执行文件。