From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4729 invoked by alias); 23 Apr 2002 23:35:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4705 invoked from network); 23 Apr 2002 23:35:12 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 23 Apr 2002 23:35:12 -0000 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id QAA10850; Tue, 23 Apr 2002 16:35:11 -0700 (PDT) Message-ID: <3CC5ECDF.4FDFB9B6@redhat.com> Date: Tue, 23 Apr 2002 16:35:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: Elena Zannoni CC: gdb-patches@sources.redhat.com Subject: Re: [RFA/Testsuite] help.exp References: <15557.59634.944097.218566@localhost.redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00888.txt.bz2 Elena Zannoni wrote: > > The recent changes to help.exp eliminating the wildcards introduced a few > failures on the powerpc. Ooops, didn't mean to do that. ;-) > How about this to deal with the difference in output for the powerpc > vs. other targets? OK with me (the author of the breakage). Or you could just use a parenthesis to make the powerpc command output optional... Michael > 2002-04-23 Elena Zannoni > > * 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.