GDB
gdb | lldb | 含义 |
---|---|---|
p *data@10 | mem read -tdouble -c10 data | print array content |
info threads | thread list | all threads |
thread 2 | thread select 2 | jump to thread |
info break | ||
dis 1 | break dis 1 | disable breakpoints |
del 1 | break del 1 | delete breakpoints |
c | continue | |
info local | frame variable | all local variables |
info args | ||
disp ${var} | display var | |
undisp var |
step
- s, step one line 会进入子函数调用
- n, next line 不会进入子函数调用
- u, Until the next line forward from the current line (so let an already- visited loop run through until forward progress).
- c, continue 到下一个断点
- j 105, jump to 任意行
- ret 3, 以指定值返回当前函数
查看指定内存地址的指令
|
|
MacOS 安装
|
|