vi /etc/yum.repos.d/CentOS-Debuginfo.repo
修改enable 为 1
yum install nss-softokn-debuginfo –nogpgcheck yum-utils -y
debuginfo-install glibc-2.17-324.el7_9.x86_64 leveldb-1.12.0-11.el7.x86_64 libgcc-4.8.5-44.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64 snappy-1.1.0-3.el7.x86_64
vim ~/.gdbinit
写入, /usr/local/go/ 是go的路径
add-auto-load-safe-path /usr/local/go/src/runtime/runtime-gdb.py
本机编译hsd, 必须在本机编译, 否则, 不能进入外部package中
gdb hsd
b github.com/tendermint/tendermint/consensus.(*NewRoundStepMessage).ValidateHeight
run #启动 , 如果 有子命令start, 则 run start , 相当于 hsd start
centos调试golang
最新推荐文章于 2022-08-20 13:41:34 发布