Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

gdb

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.

like image 397
rahul.deshmukhpatil Avatar asked Mar 12 '23 23:03

rahul.deshmukhpatil


1 Answers

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.

like image 75
llazzaro Avatar answered Apr 29 '23 05:04

llazzaro