Hi! A long long time ago, I submitted a TUI testsuite for the validation of the gdb TUI: http://sourceware.org/ml/gdb-patches/2003-08/msg00166.html Andrew approved the integration of such testsuite: http://sourceware.org/ml/gdb-patches/2003-08/msg00300.html But... it was never integrated (:- (this is my fault; I guess it was because the testsuite had few problems; a thread in Jan 2004 mention this; unless I was disturbed by the birth of my son; ...). This new TUI testsuite is seriously improved: - it contains new tests for tui specific commands like the 'layout' commands and few others (tui-commands.exp) - I've defined specific tests for tui register window and the 'tui reg' command (tui-regs.exp). This testsuite may be tuned for a specific target by specifying a list of register names, for example: "i[3456]86-*-*" { set registers "eax,ebx,ecx,edx" } This is optional. When defined, the testsuite verifies that the named register appears in the 'tui reg general' curses window. - the testsuite is more reliable than it was (few patterns had problems and failures could occur sometimes) I've validated this testsuite on the following targets: i686-pc-linux-gnu m6811-elf Here are the results for Linux: runtest gdb.tui/*.exp Test Run By ciceron on Sat Nov 12 17:23:14 2005 Native configuration is i686-pc-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target. Using ../.././gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running ../.././gdb/testsuite/gdb.tui/tui-commands.exp ... Running ../.././gdb/testsuite/gdb.tui/tui-single-key.exp ... Running ../.././gdb/testsuite/gdb.tui/tui-regs.exp ... Running ../.././gdb/testsuite/gdb.tui/tui-mode.exp ... Running ../.././gdb/testsuite/gdb.tui/tui-break.exp ... === gdb Summary === # of expected passes 120 /archives/build/gdb-6_4-i386/gdb/testsuite/../../gdb/gdb version 6.3.90-20051111-cvs -nx Can you approve this patch for the mainline? Stephane 2005-11-12 Stephane Carrez * lib/tui-support.exp: New file for TUI testsuite. * gdb.tui/break.c: New file (from gdb.base/break.c) * gdb.tui/Makefile.in: New file for TUI testsuite. * gdb.tui/tui-commands.exp: New test for TUI specific commands. * gdb.tui/tui-break.exp: New test for TUI debugging. * gdb.tui/tui-regs.exp: New test for TUI register window and commands * gdb.tui/tui-mode.exp: New test for entering/leaving TUI mode. * gdb.tui/tui-single-key.exp: New test for TUI SingleKey mode.