This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/Testsuite] help.exp
Fernando Nasser writes:
> Elena Zannoni wrote:
> >
> > The recent changes to help.exp eliminating the wildcards introduced a few
> > failures on the powerpc.
> >
> > How about this to deal with the difference in output for the powerpc
> > vs. other targets?
> >
> > Elena
> >
> Hi Elena,
>
> I would rather have a '.*' in there instead of the test for a specific
> target.
>
That is the way it was originally. That works fine with the powerpc.
> You don't need to resubmit: just add the '.*' and post the final
> version.
>
OK.
> Regards,
> Fernando
>
>
> > 2002-04-23 Elena Zannoni <ezannoni@redhat.com>
> >
> > * gdb.base/help.exp: Change 'help status' to allow for PowerPC
> > differences.
> >
> > Index: help.exp
> > ===================================================================
> > RCS file: /cvs/uberbaum/gdb/testsuite/gdb.base/help.exp,v
> > retrieving revision 1.10
> > diff -u -p -r1.10 help.exp
> > --- help.exp 29 Mar 2002 01:19:11 -0000 1.10
> > +++ help.exp 23 Apr 2002 23:04:23 -0000
> > @@ -535,7 +535,13 @@ gdb_test "help source" "Read commands fr
> > # test help stack
> > gdb_test "help stack" "Examining the stack\..*\[\r\n\]+When the program being debugged stops, gdb selects the innermost frame\.\[\r\n\]+The commands below can be used to select other frames by number or address\.\[\r\n\]+List of commands:\[\r\n\]+backtrace -- Print backtrace of all stack frames\[\r\n\]+bt -- Print backtrace of all stack frames\[\r\n\]+down -- Select and print stack frame called by this one\[\r\n\]+frame -- Select and print a stack frame\[\r\n\]+return -- Make selected stack frame return to its caller\[\r\n\]+select-frame -- Select a stack frame without printing anything\[\r\n\]+up -- Select and print stack frame that called this one\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help stack"
> > # test help status
> > -gdb_test "help status" "Status inquiries\.\[\r\n\]+List of commands:\[\r\n\]+info -- Generic command for showing things about the program being debugged\[\r\n\]+show -- Generic command for showing things about the debugger\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help status"
> > +
> > +if [istarget "powerpc-*-*"] then {
> > + gdb_test "help status" "Status inquiries\.\[\r\n\]+List of commands:\[\r\n\]+info -- Generic command for showing things about the program being debugged\[\r\n\]+info powerpc -- Various POWERPC info specific commands\[\r\n\]+info powerpc altivec -- Display the contents of the AltiVec registers\[\r\n\]+show -- Generic command for showing things about the debugger\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help status"
> > +} else {
> > + gdb_test "help status" "Status inquiries\.\[\r\n\]+List of commands:\[\r\n\]+info -- Generic command for showing things about the program being debugged\[\r\n\]+show -- Generic command for showing things about the debugger\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help status"
> > +}
> > +
> > # test help support
> > # FIXME -- Ultrix hangs randomly on this very long output from gdb and
> > # continues with its output only if something is sent to gdb.
>
> --
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9