无法使用 Ctrl-X A 离开 tui 模式,也无法在 tui 模式下查看程序输出 [英] Cannot leave tui mode with Ctrl-X A nor see program output in tui mode

查看:17
本文介绍了无法使用 Ctrl-X A 离开 tui 模式,也无法在 tui 模式下查看程序输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题 A:

  1. 我在命令行中使用gdb test"启动 gdb
  2. 在执行任何其他操作之前,我先按 ctrl-x,ctrl-a
  3. 然后我使用b main"设置断点
  4. 然后我开始使用r"运行程序

到目前为止,如果我按向上箭头键,src 窗口将不会滚动.相反,我的命令窗口中会出现一些东西 - ^ [0A".如果我尝试使用 ctrl-l 刷新屏幕,^L"会出现在命令窗口中.

Till this point, if I press the Up arrow key the src window will not scroll. Instead, something will appear in my command window - "^[0A". If I try to refresh the screen with ctrl-l, "^L" is what appears in the command window.

我认为这不应该发生.在这种情况下,我什至无法使用 c-x,c-a 退出 tui 模式(将出现^X^A").难道我做错了什么?只要我在 TUI 界面中使用运行"命令,我就会意识到这个问题.但是,如果我使用gdb -tui"启动 gdb,我可以在 TUI 中使用运行命令

I don't think this is supposed to happen. Under this situation I can't even quit tui mode with c-x,c-a ("^X^A" will appear instead). Am I doing something wrong? I realize this problem occurs so long as I use the "run" command inside the TUI interface. I can, however, use the run command in TUI if I start gdb with "gdb -tui"

问题 B

在 TUI 模式下我看不到程序的输出.可以看到 GDB 自己的输出,但不能看到被调试程序的输出.当我使用 ctrl-x,ctrl-a 进入 TUI 和使用 -tui 命令行选项时都会发生这种情况.

I can't see the output of my program in TUI mode. GDB's own output can be seen, but not that of the program being debugged. This occurs both when I enter TUI using ctrl-x,ctrl-a and when using -tui command-line option.

有没有办法解决这个问题?

Is there any way to fix this?

我在网上阅读了一些 TUI 文章,有些人似乎专门"使用 TUI.我想TUI可以正常工作,只是有一套规则必须仔细遵守?

I've read some TUI articles on the net and some people seem to use TUI "exclusively". I suppose TUI can work properly, it's just there's a set of rules that must be carefully followed?

我在 ubuntu 11.04 中使用 gnome-terminal

I use gnome-terminal in ubuntu 11.04

推荐答案

使用 -tui 选项运行 gdb (https://bbs.archlinux.org/viewtopic.php?id=112660)

Run gdb with -tui option instead (https://bbs.archlinux.org/viewtopic.php?id=112660)

这篇关于无法使用 Ctrl-X A 离开 tui 模式,也无法在 tui 模式下查看程序输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆