From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18996 invoked by alias); 10 Dec 2001 20:32:31 -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 18975 invoked from network); 10 Dec 2001 20:32:30 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 10 Dec 2001 20:32:30 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id B193A5E9D8; Mon, 10 Dec 2001 15:33:48 -0500 (EST) To: Michael Snyder 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> <3C14FA97.25B7C0B6@cygnus.com> From: Jim Blandy Date: Mon, 10 Dec 2001 12:32:00 -0000 In-Reply-To: Michael Snyder's message of Mon, 10 Dec 2001 10:10:31 -0800 Message-ID: X-Mailer: Gnus v5.3/Emacs 19.34 X-SW-Source: 2001-12/txt/msg00280.txt.bz2 Committed, thanks. Michael Snyder writes: > > 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" > > } >