GDB TUI-输出未对齐 [英] GDB TUI - output does not line up

查看:75
本文介绍了GDB TUI-输出未对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ubuntu上使用gdb 7.7.1,GNU gdb(Ubuntu 7.7.1-0ubuntu5〜14.04.2)7.7.1.

I am using gdb 7.7.1 on ubuntu, GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1.

我的终端是Konsole 2.13.2.

My terminal is Konsole 2.13.2.

我遇到的问题是,当我进入TUI模式时,在一两个调试器会话之后-会话,我的意思是设置断点,运行,经过一段时间,最后通过"kill"命令杀死它-输出开始混乱.假设每个输出都应该换到新的一行,但是现在它们只是全部争夺,一个接一个地争夺.

The problem I am having is, when I go to the TUI mode, after one or two debugger sessions - session, I mean, set breakpoint, run, step over a while and finally kill it by "kill" command - the output starts messed up. Supposedly each output should go to a new line, but now they just all scramble, one immediately after another one.

我附上了截图.

我必须退出GDB,打开一个新的终端选项卡,然后再次启动gdb.

I have to quit GDB, open a new terminal tab and start gdb again.

我来回尝试了"ctrl-x-a",没有帮助;也不是"ctrl-l".

I tried "ctrl-x-a" back and forth, does not help; neither does "ctrl-l".

前阵子,我在使用另一个终端,它也有这个问题.

A while back, I was using another terminal, it also had this problem.

感谢您的帮助.

推荐答案

看来,您的tty设置已更改,与 tty -onlcr 可能会更改它们的方式几乎相同( tty onlcr恢复默认值).也许您正在调试的代码更改了tty设置,并且由于崩溃而没有机会恢复它们.

It appears that your tty settings changed, in much the same way that tty -onlcr might change them (tty onlcr restores the default). Perhaps the code you're debugging changes tty settings, and doesn't get a chance to restore them because of a crash.

如评论中所建议,使用单独的窗口可能会提供解决方法.

As suggested in a comment, using a separate window might provide a workaround.

这篇关于GDB TUI-输出未对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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