gdb的.gdbinit发出令人讨厌的反馈:“焦点CMD”使用
我正在写一个.gdbinit
文件,该文件将设置我的布局
tui enable
tui new-layout mylayout {-horizontal {src 8 asm 2} 6 regs 4} 8 status 0 cmd 2
layout mylayout
refresh
set tui border-kind space
set tui tab-width 4
set tui compact-source on
focus cmd
。代码> gdb-multiarch ,并且一切都正确设置了,除了我得到了这个烦人的反馈:
--Type <RET> for more, q to quit, c to continue without paging--
看起来像这样:
我发现,如果我在评论最后一行, .gdbinit
,反馈消息消失。但是,cmd
窗口不集中。
如何将cmd
窗口重点放在同时避免烦人的反馈消息?
I am writting a .gdbinit
file which would set up my layout as I always want it.So I put this inside the .gdbinit
:
tui enable
tui new-layout mylayout {-horizontal {src 8 asm 2} 6 regs 4} 8 status 0 cmd 2
layout mylayout
refresh
set tui border-kind space
set tui tab-width 4
set tui compact-source on
focus cmd
Then I start GDB with a command gdb-multiarch
and everything is set up correctly, except that I get this annoying feedback:
--Type <RET> for more, q to quit, c to continue without paging--
It looks like this:
I found out that if I comment out the last line in the .gdbinit
, feedback message dissapears. But then cmd
window is not focused.
How can I focus the cmd
window and at the same time avoid the annoying feedback message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于GDB 9,您可以将命令的
使用。将最后一行更改为:
这将暂时关闭分页,而
focus
命令运行,这将阻止显示的查询。当然,完全显示查询显然是一个错误...但是以上应该让您围绕它进行工作。
Since GDB 9 you could use the
with
command. Change the last line to:This will temporarily turn off pagination while the
focus
command runs, which will prevent the query being displayed.Of course, that the query is displayed at all is clearly a bug... but the above should allow you to work around it.