With option -tui, GDB exits with “TUI mode is not allowed”

喜你入骨 提交于 2021-02-08 02:03:53

问题


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.


回答1:


I had the same issue. To solve it you have to recompile gdb with TUI support.

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

Now you can use TUI with gdb :D

gbd --tui

If you still have issues, try to move the new gdb binary to /usr/bin. the new binary is on the directory gdb.



来源:https://stackoverflow.com/questions/37856059/with-option-tui-gdb-exits-with-tui-mode-is-not-allowed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!