From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11281 invoked by alias); 10 Dec 2001 18:13:28 -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 11257 invoked from network); 10 Dec 2001 18:13:24 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 10 Dec 2001 18:13:24 -0000 Received: from cygnus.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA10734; Mon, 10 Dec 2001 10:13:22 -0800 (PST) Message-ID: <3C14FA97.25B7C0B6@cygnus.com> Date: Mon, 10 Dec 2001 10:13:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Jim Blandy CC: gdb-patches@sources.redhat.com Subject: Re: RFA: asm-source.exp: anchor regexp matching entry point symbol name References: <20011208195134.08A7F5E9D8@zwingli.cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00271.txt.bz2 Jim Blandy wrote: > > 2001-12-08 Jim Blandy > > * gdb.asm/asm-source.exp (info symbol): Anchor the pattern > matching the entry point symbol's name at the beginning of the > line. Thanks -- that's what I meant to do. Please check it in. > > Index: gdb/testsuite/gdb.asm/asm-source.exp > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v > retrieving revision 1.12 > diff -c -r1.12 asm-source.exp > *** gdb/testsuite/gdb.asm/asm-source.exp 2001/12/07 02:50:02 1.12 > --- gdb/testsuite/gdb.asm/asm-source.exp 2001/12/08 19:49:07 > *************** > *** 122,128 **** > -re "info symbol 0x$entry_point\[\r\n\]*" { > exp_continue > } > ! -re "(.*) in section .*$gdb_prompt $" { > set entry_symbol $expect_out(1,string) > pass "info symbol" > } > --- 122,131 ---- > -re "info symbol 0x$entry_point\[\r\n\]*" { > exp_continue > } > ! -re "^(.*) in section .*$gdb_prompt $" { > ! # It's important to anchor the pattern above at the beginning > ! # of the line. Without that carat, the (.*) may end up > ! # matching the empty string. > set entry_symbol $expect_out(1,string) > pass "info symbol" > }