From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24061 invoked by alias); 18 Feb 2002 23:16:39 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23877 invoked from network); 18 Feb 2002 23:16:26 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 18 Feb 2002 23:16:26 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16cx1E-0007br-00; Mon, 18 Feb 2002 18:16:24 -0500 Date: Mon, 18 Feb 2002 15:16:00 -0000 From: Daniel Jacobowitz To: Michael Elizabeth Chastain Cc: gdb@sources.redhat.com Subject: Re: how to call gdb_test "" ... ? Message-ID: <20020218181623.A28849@nevyn.them.org> Mail-Followup-To: Michael Elizabeth Chastain , gdb@sources.redhat.com References: <200202182237.g1IMbH122114@duracef.shout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200202182237.g1IMbH122114@duracef.shout.net> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00234.txt.bz2 On Mon, Feb 18, 2002 at 04:37:17PM -0600, Michael Elizabeth Chastain wrote: > I am reworking gdb.base/list.exp and in the process I'm converting a lot > of send_gdb calls to gdb_test. (If you want to know why I'm reworking it, > I'm getting rid of the "testcnt" mechanism, which list.exp uses instead > of just issuing a PASS when a test succeeds). > > In one place I want to do this: > > gdb_test "list list0.c:10" "..." > gdb_test "" "..." > gdb_test "" "..." > gdb_test "" "..." > > That is to say, I want to send a "list" command, and then send some > empty commands and look at the results as usual. > > gdb_test does not work with an argument of "". > > Is there an easy way to do this, or should I just stick with send_gdb "\n"? > The test script already calls send_gdb "\n" and I don't mind keeping it > that way. I'm just wondering if someone knows a better idiom. Does gdb_test work with "\n"? I think it will. In fact, it appears to in casual testing. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer