MacOS lldb 使用记录

MacOS lldb 使用记录,第1张

lldb test

b main

b start

run

c 继续运行

n 下一条

s 进入

bt 堆栈

breakpoint list 断点列表

process 带输入参数调试

(lldb) process launch --  
(lldb) run  
(lldb) r

b strcmp

b fopen

b close

b exit

b open

b read

b write

frame 

up 

down

image list 查看加载的模块列表

register read $rax

register write

p/x $rax

breakpoint delete

反汇编:

dis -f  当前函数汇编

dis -n start 所有名为start的汇编

dis -a address。内存地址汇编

dis -l       当前行汇编

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/2990832.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-23
下一篇 2022-09-23

发表评论

登录后才能评论

评论列表(0条)

保存