1 Star 0 Fork 0

慕容宇月 / linux-development-environment-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gdb_use.txt 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
murongyuyue 提交于 2021-03-03 20:30 . edit
# other debug tool.
ldd # look executable file's rely on.
nm # list object file's or share library's symbol table.
strace # trace process running syscall.
objdump # look assembly code. bin file parse.
readelf # parse elf type file.
pstack # trace process stack space.
od # look bin file.
backtrace # trace function call stack.
valgrind # memory leakage debug.
$ gcc -g main.c -o main.elf
$ gdb main.elf
# other commandline.
file # add debug file.
print # print variable value.
disassemble # disassembling.
# condition breakpoint.
# content breakpoint.
start # one step debug.
next # continue run.
run # run to break.
breakpoint # add breakpoint.
# memory breakpoint.
awatch # read write breakpoint.
rwatch # read breakpoint.
watch # write breakpoint.
1
https://gitee.com/murong-yuyue/linux-development-environment-config.git
git@gitee.com:murong-yuyue/linux-development-environment-config.git
murong-yuyue
linux-development-environment-config
linux-development-environment-config
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891