This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH] maint.exp
- To: Elena Zannoni <ezannoni at cygnus dot com>
- Subject: Re: [PATCH] maint.exp
- From: Jimmy Guo <guo at cup dot hp dot com>
- Date: Mon, 19 Jun 2000 09:49:35 -0700 (PDT)
- Cc: gdb-patches at sourceware dot cygnus dot com
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"