From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8420 invoked by alias); 20 Jul 2003 08:21:13 -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 8413 invoked from network); 20 Jul 2003 08:21:08 -0000 Received: from unknown (HELO lisa.goe.net) (134.76.166.209) by sources.redhat.com with SMTP; 20 Jul 2003 08:21:08 -0000 Received: from mutter.goe.net (mutter-lisa0.a11.local [192.168.31.26]) by lisa.goe.net (8.12.6/8.12.6) with ESMTP id h6K8L68i004223 for ; Sun, 20 Jul 2003 10:21:07 +0200 Received: from whitebox.a11.local ([192.168.31.90] helo=whitebox.as.local) by mutter.goe.net with esmtp (Exim 4.20) id 19e9RK-0001tI-Aj for gdb-patches@sources.redhat.com; Sun, 20 Jul 2003 10:21:06 +0200 Received: from whitebox.as.local (localhost [127.0.0.1]) by whitebox.as.local (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id h6K8L3sZ014215 for ; Sun, 20 Jul 2003 10:21:04 +0200 Received: (from andreas@localhost) by whitebox.as.local (8.12.7/8.12.7/Submit) id h6K8L3LO014214; Sun, 20 Jul 2003 10:21:03 +0200 X-Authentication-Warning: whitebox.as.local: andreas set sender to schwab@suse.de using -f To: gdb-patches@sources.redhat.com Subject: Fix selftest.exp From: Andreas Schwab X-Yow: I'm in a twist contest!! I'm in a bathtub! It's on Mars!! I'm in tip-top condition! Date: Sun, 20 Jul 2003 08:21:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00357.txt.bz2 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. 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"