From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3646 invoked by alias); 14 Jan 2003 20:29:44 -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 3629 invoked from network); 14 Jan 2003 20:29:39 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by 209.249.29.67 with SMTP; 14 Jan 2003 20:29:39 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h0EKTRx15981; Tue, 14 Jan 2003 12:29:27 -0800 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: gdb-patches@sources.redhat.com Subject: [rfa/testsuite] more selftest.exp tweaking Cc: Fernando Nasser From: David Carlton Date: Tue, 14 Jan 2003 20:29:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-01/txt/msg00533.txt.bz2 I just noticed that my compiler (GCC 3.1 -O2) reorders some of the new sysroot stuff in captured_main to a location where selftest.exp sees it. I'm almost positive that seeing this is legitimate, not a bug in GDB. Here's a patch to allow it; OK to commit? Tested on i686-pc-linux-gnu/GCC 3.1 -O2/DWARF-2. (Selftest is a pain. Sigh.) David Carlton carlton@math.stanford.edu 2003-01-14 David Carlton * gdb.base/selftest.exp (do_steps_and_nexts): Allow gdb_sysroot. Index: selftest.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/selftest.exp,v retrieving revision 1.6 diff -u -p -r1.6 selftest.exp --- selftest.exp 23 Dec 2002 16:56:25 -0000 1.6 +++ selftest.exp 14 Jan 2003 20:27:08 -0000 @@ -170,6 +170,11 @@ proc do_steps_and_nexts {} { set description "step over current_directory initialization" set command "step" } + -re ".*gdb_sysroot = .*$gdb_prompt $" { + # NOTE: carlton/2003-01-14: More optimization reordering. + set description "step over gdb_sysroot initialization" + set command "step" + } -re "\[ \t\]+\{\r\n$gdb_prompt $" { setup_xfail "mips-*-irix5*" fail "$description ended up at odd location"