cgdb配置

1.安装

git clone git://github.com/cgdb/cgdb.git
cd cgdb
./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
# 报错解决方法
sudo apt-get install automake libncurses5-dev flex texinfo libreadline-dev

2.配置

vim ~/.cgdb/cgdbrc
set ignorecaseset
ts=4
set wso=vertical
set eld=shortarrow
set hls
map <F9> :until<cr>

3.快捷键

F5 - Send a run command to GDB.
F6 - Send a continue command to GDB.
F7 - Send a finish command to GDB.
F8 - Send a next command to GDB.
F10 - Send a step command to GDB.

posted @   devin1024  阅读(21)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
点击右上角即可分享
微信分享提示