使用选项-tui,GDB将以“不允许TUI模式"退出. [英] With option -tui, GDB exits with "TUI mode is not allowed"
问题描述
我正在运行gdb GNU gdb(GDB)红帽企业版Linux 7.6.1-51.el7
版本.我的TUI模式正在无缝运行.突然,现在在发出命令 layout src
时,给出错误不允许的TUI模式"
.当我尝试使用 -tui
选项运行gdb时,gdb将立即以不允许使用TUI模式"
退出.
I am running gdb GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
version. My TUI mode was working seamlessly.
Suddenly, now it is giving error "TUI mode not allowed"
upon issuing command layout src
. When I try to run gdb with -tui
option, gdb is exiting immediately with "TUI mode not allowed"
.
*被问为新问题,因为其他任何线程都无济于事.
*Asked as new question because none of other threads could help.
推荐答案
我遇到了同样的问题.要解决此问题,您必须使用TUI支持重新编译gdb.
I had the same issue. To solve it you have to recompile gdb with TUI support.
这些是Ubuntu的步骤:
These are the steps for Ubuntu:
apt-get build-dep gdb
apt-get source gdb
cd gdb-7.7.1
./configure --enable-tui=yes
make
# grab a coffee
sudo make install
现在您可以将TUI与gdb:D
Now you can use TUI with gdb :D
gbd --tui
如果仍然有问题,请尝试将新的gdb二进制文件移至/usr/bin.新的二进制文件在目录gdb上.
If you still have issues, try to move the new gdb binary to /usr/bin. the new binary is on the directory gdb.
这篇关于使用选项-tui,GDB将以“不允许TUI模式"退出.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!