From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10050 invoked by alias); 5 May 2005 16:27:46 -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 9265 invoked from network); 5 May 2005 16:27:13 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 5 May 2005 16:27:13 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DTjBs-0003sH-10; Thu, 05 May 2005 12:27:08 -0400 Date: Thu, 05 May 2005 16:27:00 -0000 From: Daniel Jacobowitz To: Manoj Iyer Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] new GDB server testcase Message-ID: <20050505162707.GB14746@nevyn.them.org> Mail-Followup-To: Manoj Iyer , gdb-patches@sources.redhat.com References: <20050504144044.GA14120@nevyn.them.org> <20050504184620.GA19639@nevyn.them.org> <20050504220703.GB4822@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00167.txt.bz2 On Thu, May 05, 2005 at 11:19:17AM -0500, Manoj Iyer wrote: > > When I have an output in a test as this: > > (gdb) > step > function4 () at gdb.server/server.c:24 > 24 int x = 1; > (gdb) > > What should I test for in the gdb_test command? > > gdb_test "step" "function4 \(\) at .*$srcfile:\[0-9\]+." > > or > > gdb_test "step" ".*.\[0-9\].*int x \= 1\; > > > Its not working for me in either case currently, unless I use a ".*" at > the end, which I am trying to avoid (as per daniel's suggestion). Well, you can test for either. But the second one ought to work (though you have some more backslashes than you need). When you have matching troubles, put "exp_internal 1" in front of the line giving you trouble. -- Daniel Jacobowitz CodeSourcery, LLC