The default installation from Debian 9's netinst ISO doesn't include gdb or C or C++ compilers. A user would typically run apt install build-essential gdb
to install them.
In certain circumstances - I could reproduce this by using the netinst ISO and choosing to install KDE - the gdb-minimal
package will be installed, which provides a gdb that doesn't include TUI (or python).
mp@debian9$ apt-rdepends -r gdb-minimal
gdb-minimal
Reverse Depends: plasma-workspace (4:5.8.6-2.1+deb9u1)
plasma-workspace
Reverse Depends: kde-plasma-desktop (>= 5:92)
...
kde-plasma-desktop
Reverse Depends: kde-full (>= 5:92)
Reverse Depends: kde-standard (>= 5:92)
It looks like you have this.
Running apt install gdb
will remove gdb-minimal
and install the full gdb.
tui enable
thenlayout asm
work?Undefined command: "tui"
gdb
orgdb [name of the executable you wish to debug]
. You can also launchgdb
with--tui
to immediately enter TUI mode. If this is unsupported then your install ofgdb
was not configured with TUI support and you will need to reinstall or recompilegdb
to include these features.gdb --version
?gdb-minimal
package, which doesn't have tui or python support. Dosudo apt install gdb
to get the full version. This will also remove gdb-minimal.