[PATCH] maint.exp

Elena Zannoni ezannoni@cygnus.com
Mon Jun 19 11:19:00 GMT 2000


Jimmy, I already committed my change, feel free to commit the use of
gdb_expect_list on top of that.

Thanks
Elena

Jimmy Guo writes:
 > I'm looking at this test failure right now and have converted this test
 > to use gdb_expect_list ().  See attached diff:
 > 
 > - Jimmy
 > 
 > 2000-06-19  Jimmy Guo  <guo@cup.hp.com>
 > 	* gdb.base/maint.exp: Add 'maint print architecture' item to output
 >  	of 'help maint print' command, use gdb_expect_list ().
 > 
 > Index: gdb.base/maint.exp
 > /usr/local/bin/diff -c -w -L gdb.base/maint.exp gdb.base/maint.exp@@/main/_guo_unified_merge/5 gdb.base/maint.exp
 > *** gdb.base/maint.exp
 > --- gdb.base/maint.exp	Mon Jun 19 09:44:42 2000
 > ***************
 > *** 613,623 ****
 >           }
 >   
 >   send_gdb "help maint print\n"
 > ! gdb_expect  {
 > !         -re "Maintenance command for printing GDB internal state\\.\[\r\n\]+List of maintenance print subcommands:\[\r\n\]+maintenance print msymbols -- Print dump of current minimal symbol definitions.*maintenance print objfiles -- Print dump of current object file definitions.*maintenance print psymbols -- Print dump of current partial symbol definitions.*maintenance print statistics -- Print statistics about internal gdb state.*maintenance print symbols -- Print dump of current symbol definitions.*maintenance print type -- Print a type chain for a given symbol.*Type .help maintenance print. followed by maintenance print subcommand name for full documentation\\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\\..*$gdb_prompt $"\
 > !                         { pass "help maint print" }
 > !         -re ".*$gdb_prompt $"       { fail "help maint print" }
 > !         timeout         { fail "(timeout) help maint print" }
 >           }
 >   
 >   send_gdb "help maint\n"
 > --- 613,630 ----
 >           }
 >   
 >   send_gdb "help maint print\n"
 > ! gdb_expect_list "help maint print" ".*$gdb_prompt $"  {
 > !     "Maintenance command for printing GDB internal state\\.\[\r\n\]+"
 > !     "List of maintenance print subcommands:\[\r\n\]+"
 > !     "maintenance print architecture -- Print the internal architecture configuration"
 > !     "maintenance print msymbols -- Print dump of current minimal symbol definitions"
 > !     ".*maintenance print objfiles -- Print dump of current object file definitions"
 > !     ".*maintenance print psymbols -- Print dump of current partial symbol definitions"
 > !     ".*maintenance print statistics -- Print statistics about internal gdb state"
 > !     ".*maintenance print symbols -- Print dump of current symbol definitions"
 > !     ".*maintenance print type -- Print a type chain for a given symbol"
 > !     ".*Type .help maintenance print. followed by maintenance print subcommand name for full documentation\\.\[\r\n\]+"
 > !     "Command name abbreviations are allowed if unambiguous\\."
 >   }
 >   
 >   send_gdb "help maint\n"
 > 


More information about the Gdb-patches mailing list