gdb
file
cd
pwd
run
continue
kill
list
break
tbreak
condition
signal
dir
watch
awatch
rwatch
next
step
display
info break
info files
info func
info local
info prog
info threads
print
delete
shell
make
bt
frame
thread
x
set follow-fork-mode child/parent
attach
detach
gdb -q
gdb ./a.out core_a.out_xxxxx
b *main
b file:function
b class::function
b file:line
.gdbinit文件,在其中用dir设置代码.c/.cpp文件所在的目录
本文介绍GDB的基本命令,包括启动程序、设置断点、查看变量等。还涉及如何通过.gdbinit文件配置GDB的工作目录。
3851

被折叠的 条评论
为什么被折叠?



