Hi! I wrote a small TUI testsuite to check the gdb TUI mode. The testsuite does not check for exact curses output because it would be too terminal dependant. However, it checks enough output to be confident that the TUI is functional. tui-mode.exp checks that we can enter and leave TUI mode (^Xa) as well as various window changes (^X2 binding). In this test, gdb is started with -tui option. tui-break.exp is inspired from gdb.base/break.exp and checks breakpoint and single step in TUI mode. gdb is started without -tui and TUI mode is entered after program is loaded (it was easier for the test to do this way, and well this also correspond to the way I use the TUI...). tui-single-key.exp is similar but uses the SingleKey mode in which several keys (c u d r s ...) are bound to gdb command. It also checks that we can temporarily leave the SingleKey mode to give a long gdb command (like break or info). The TUI tests are not executed when gdb is not configured with --enable-tui. To check this, gdb -help is run and the usage is parsed to see if -tui option is reported. Here are the results I've obtained. runtest gdb.tui/*.exp Test Run By ciceron on Sun Aug 10 20:18:36 2003 Native configuration is i686-pc-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using ./config/unix.exp as tool-and-target-specific interface file. Running ./gdb.tui/tui-single-key.exp ... Running ./gdb.tui/tui-mode.exp ... Running ./gdb.tui/tui-break.exp ... === gdb Summary === # of expected passes 53 /build/fsf-m68hc11/gdb-tui/gdb/testsuite/../../gdb/gdb version 5.3.90_2003-08-08-cvs -nx Can you approve or comment this patch? Stephane 2003-08-10 Stephane Carrez * lib/tui-support.exp: New file, from mi-support.exp and adapted for TUI. * gdb.tui/tui-single-key.exp: New file, test SingleKey mode. * gdb.tui/tui-mode.exp: New file, test switching capability of TUI. * gdb.tui/tui-break.exp: New file, test breakpoints and single stepping in TUI mode. * gdb.tui/break.c: New file (copied from gdb.base/break.c).