问题
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