高级用法

异步调试(后台调试)

无需等待上一条调试命令执行完成后,即可执行下一条命令,主要用于non-stop模式。

command&      // 命令后加 &, 不能加空格

 

 

 

调试多进程

参考:http://c.biancheng.net/view/8274.html

信号处理

参考:http://c.biancheng.net/view/8291.html

 

编辑和搜索

 

// 编辑文件
edit \[location\]
edit \[func\_name\]
edit \[filename\]:\[location\]
export EDITOR=/usr/bin/vim    // 指定editor的编辑器
 
 // 搜索源码
search <regexp>                // regexp是正则表达式
reverse-search <regexp>        // 反向搜索

 

 

 

 

posted on 2021-01-16 21:35  zhongqing  阅读(96)  评论(0编辑  收藏  举报