打印参数

gef➤  show args
Argument list to give program being debugged when it is started is "-c /staff/shaojiemike/github/sniper_PIMProf/config/base.cfg --general/total_cores=1 --general/output_dir=/staff/shaojiemike/github/sniper_PIMProf/PIMProf/test/inj_cpu --config=/staff/shaojiemike/github/sniper_PIMProf/config/pimprof_cpu.cfg -g --general/magic=true -g --traceinput/stop_with_first_app=true -g --traceinput/restart_apps=false -g --traceinput/stop_with_first_app=false -g --traceinput/enabled=true -g --traceinput/emulate_syscalls=true -g --traceinput/num_apps=1 -g --traceinput/trace_prefix=/tmp/tmpTyIyvJ/run_benchmarks".

打印结构体clas

gef➤  p -raw-values off -- this->TotalCycles
gef➤  p this                                                                                                                                                                                                                         
$11 = (llvm::mca::SummaryView * const) 0x7fffffffcc08                                                                                                                                                                                
gef➤  p *this

打印所有局部变量

Untitled

打印指针变量

Untitled

Untitled

打印变量的值

Untitled

GDB中查看指定内存地址内容的指令:

examine命令(简写是x)

Untitled

Untitled

打印寄存器值(表格)

layout split
layout regs
tui reg general

Untitled

Untitled