gdb的.gdbinit发出令人讨厌的反馈:“焦点CMD”使用

发布于 2025-01-23 04:58:06 字数 740 浏览 0 评论 0原文

我正在写一个.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:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心病无药医 2025-01-30 04:58:06

由于GDB 9,您可以将命令的使用。将最后一行更改为:

with pagination off -- focus cmd

这将暂时关闭分页,而focus命令运行,这将阻止显示的查询。

当然,完全显示查询显然是一个错误...但是以上应该让您围绕它进行工作。

Since GDB 9 you could use the with command. Change the last line to:

with pagination off -- focus cmd

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文