我们可以在GDB中设置键绑定吗? [英] Can we set keybindings in GDB?
本文介绍了我们可以在GDB中设置键绑定吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将命令绑定到GDB中的单个按钮,例如F12?
Is it possible to bind a command to a single button in GDB, F12 for example?
(像往常一样,不要尝试销售emacs或找出你在做什么)
(as usual, don't try to sell emacs or find out "what are you trying to do")
推荐答案
gdb使用 readline 库,所以你可以在〜/ .inputrc
将 F12 绑定到 continue
命令:
gdb uses the readline library, so you could put the following in ~/.inputrc
to bind F12 to the continue
command:
"\e[24~":"continue\r"
这篇关于我们可以在GDB中设置键绑定吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文