From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1968 invoked by alias); 20 Jul 2003 15:52:59 -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 1957 invoked from network); 20 Jul 2003 15:52:58 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 20 Jul 2003 15:52:58 -0000 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19eGUc-00027A-00 for ; Sun, 20 Jul 2003 11:52:58 -0400 Date: Sun, 20 Jul 2003 15:52:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: Fix selftest.exp Message-ID: <20030720155257.GA8102@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00359.txt.bz2 On Sun, Jul 20, 2003 at 10:21:03AM +0200, Andreas Schwab wrote: > GCC 3.4 can reorder insns quite heavily. On PPC the selftest fails > because (parts of) later statements are executed much earlier in the > function. > > Andreas. This is OK. I hate this test... > 2003-07-20 Andreas Schwab > > * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns > due to insn reordering. > > --- gdb/testsuite/gdb.base/selftest.exp.~1.8.6.1.~ 2003-06-30 23:06:56.000000000 +0200 > +++ gdb/testsuite/gdb.base/selftest.exp 2003-07-20 10:11:30.000000000 +0200 > @@ -180,6 +180,18 @@ proc do_steps_and_nexts {} { > set description "step over gdb_sysroot initialization" > set command "step" > } > + -re ".*ndir = 0.*$gdb_prompt $" { > + set description "step over ndir initialization" > + set command "step" > + } > + -re ".*instream = stdin.*$gdb_prompt $" { > + set description "step over instream initialization" > + set command "step" > + } > + -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf..;.*$gdb_prompt $" { > + set description "next over getcwd" > + set command "next" > + } > -re "\[ \t\]+\{\r\n$gdb_prompt $" { > setup_xfail "mips-*-irix5*" > fail "$description ended up at odd location" > -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer