From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18184 invoked by alias); 26 Feb 2006 18:35:16 -0000 Received: (qmail 18175 invoked by uid 22791); 26 Feb 2006 18:35:16 -0000 X-Spam-Check-By: sourceware.org Received: from w099.z064220152.sjc-ca.dsl.cnc.net (HELO duck.specifix.com) (64.220.152.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 26 Feb 2006 18:35:15 +0000 Received: from [::1] (duck.specifix.com [64.220.152.99]) by duck.specifix.com (Postfix) with ESMTP id 6A0A641E4; Sun, 26 Feb 2006 10:35:13 -0800 (PST) From: Fred Fish Reply-To: fnf@specifix.com To: gdb-patches@sourceware.org Subject: [PATCH] Recognize and skip interpreter_p initialization in selftest.exp Date: Sun, 26 Feb 2006 18:40:00 -0000 User-Agent: KMail/1.9.1 Cc: fnf@specifix.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602261335.28612.fnf@specifix.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00481.txt.bz2 With the latest development gcc and latest development gdb, selftest.exp fails because the breakpoint at captured_main gets set at the interpreter_p initialization, which isn't currently one of the recognized patterns. Apparently optimization has gotten better and this code has been moved up the instruction stream: (gdb) br captured_main Breakpoint 1 at 0x807c714: file /src/latest/trunk/src/gdb/gdb/main.c, line 241. (gdb) run Starting program: /links/build/latest/trunk/i686-pc-linux-gnu/gdb/gdb/gdb Breakpoint 1, captured_main (data=0xbfdbb3f4) at /src/latest/trunk/src/gdb/gdb/main.c:241 241 interpreter_p = xstrdup (context->interpreter_p); -Fred 2006-02-26 Fred Fish * gdb.gdb/selftest.exp (do_steps_and_nexts): Recognize and skip over interpreter_p initialization. Index: testsuite/gdb.gdb/selftest.exp =================================================================== RCS file: /cvsroots/latest/src/gdb/gdb/testsuite/gdb.gdb/selftest.exp,v retrieving revision 1.1.1.2 diff -c -p -r1.1.1.2 selftest.exp *** testsuite/gdb.gdb/selftest.exp 30 Dec 2005 18:53:28 -0000 1.1.1.2 --- testsuite/gdb.gdb/selftest.exp 26 Feb 2006 18:27:34 -0000 *************** proc do_steps_and_nexts {} { *** 184,189 **** --- 184,193 ---- set description "next over getcwd" set command "next" } + -re ".*interpreter_p = xstrdup.*$gdb_prompt $" { + set description "next over interpreter_p initialization" + set command "next" + } -re "\[ \t\]+\{\r\n$gdb_prompt $" { setup_xfail "mips-*-irix5*" fail "$description ended up at odd location"