From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11783 invoked by alias); 9 Apr 2003 22:09:48 -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 11776 invoked from network); 9 Apr 2003 22:09:48 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Apr 2003 22:09:48 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h39M9me31746 for ; Wed, 9 Apr 2003 18:09:48 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h39M9lJ26621; Wed, 9 Apr 2003 18:09:47 -0400 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h39M9km17606; Wed, 9 Apr 2003 18:09:46 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 2D3712C43F; Wed, 9 Apr 2003 18:14:07 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16020.39727.12711.908560@localhost.redhat.com> Date: Wed, 09 Apr 2003 22:09:00 -0000 To: Bob Rossi Cc: Elena Zannoni , David Carlton , gdb , Andrew Cagney Subject: Re: bug in gdb.mi/mi-file.exp (or maybe in GDB) In-Reply-To: <20030409212815.GC22063@white> References: <20030409203024.GA22063@white> <16020.36832.631285.111407@localhost.redhat.com> <20030409212815.GC22063@white> X-SW-Source: 2003-04/txt/msg00089.txt.bz2 Bob Rossi writes: > > Ah right, ${srcfilepath} is set up by the testsuite machinery, not > > gdb, so it is not guaranteed to match fullname. I thought you meant > > that fullname could not be absolute, and that got me puzzled. Bottom > > line, the testsuite doesn't know what the absolute path is. We could > > pull the dirty trick of asking gdb for it, with an 'info source' and > > use that output to match. > > I think if we did that, they might break consistently, and the test case > could still pass. It seems like maybe we should allow the file to match > the same thing we allow fullname to match. "/.*$(srcfile}" Since it is legal. Yes, but the purpose of the mi testsuite is to check consistency between what the cli produces and what the mi produces. It is not the case that we want to verify that 'info source' works. For that there should be a test in gdb.base (BTW, is there one?) But anyway, I don't feel strongly ether way. elena