From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7254 invoked by alias); 8 Dec 2001 19:50:24 -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 7223 invoked from network); 8 Dec 2001 19:50:22 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 8 Dec 2001 19:50:22 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 08A7F5E9D8; Sat, 8 Dec 2001 14:51:34 -0500 (EST) From: Jim Blandy To: gdb-patches@sources.redhat.com Subject: RFA: asm-source.exp: anchor regexp matching entry point symbol name Message-Id: <20011208195134.08A7F5E9D8@zwingli.cygnus.com> Date: Sat, 08 Dec 2001 11:50:00 -0000 X-SW-Source: 2001-12/txt/msg00232.txt.bz2 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. 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" }