From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16481 invoked by alias); 9 Apr 2003 21:21:35 -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 16459 invoked from network); 9 Apr 2003 21:21:33 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Apr 2003 21:21:33 -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 h39LLXe19693 for ; Wed, 9 Apr 2003 17:21:33 -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 h39LLXJ11184; Wed, 9 Apr 2003 17:21:33 -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 h39LLWm13850; Wed, 9 Apr 2003 17:21:32 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 0447B2C43F; Wed, 9 Apr 2003 17:25:53 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16020.36832.631285.111407@localhost.redhat.com> Date: Wed, 09 Apr 2003 21:21:00 -0000 To: David Carlton Cc: Bob Rossi , gdb , Andrew Cagney , Elena Zannoni Subject: Re: bug in gdb.mi/mi-file.exp (or maybe in GDB) In-Reply-To: References: <20030409203024.GA22063@white> X-SW-Source: 2003-04/txt/msg00087.txt.bz2 David Carlton writes: > On Wed, 9 Apr 2003 16:30:24 -0400, Bob Rossi said: > > On Wed, Apr 09, 2003 at 01:01:41PM -0700, David Carlton wrote: > > >> gdb.log says: > >> > >> 111^done,line="23",file="gdb.mi/basics.c",fullname="/extra/gdb/mirror/src/gdb/testsuite/gdb.mi/basics.c" > > > This is what I get, which passes > > 111^done,line="23",file="./gdb.mi/basics.c",fullname="/home/bob/cvs/src/gdb/testsuite/gdb.mi/basics.c"^ > > Ah. I guess maybe different versions of GCC differ as to whether or > not they include the './' in the filename in the debug info, or > something. > Compiling and building everything with absolute paths in build!=src, I get absolute paths in both. 111^done,line="23",file="/home/ezannoni/sources/src/gdb/testsuite/gdb.mi/basics.c",fullname="/home/ezannoni/sources/src/gdb/testsuite/gdb.mi/basics.c" > >> Should 'file' match .*${srcfile} > >> (without any slashes) and 'fullname' match ${srcfilepath}? > > > I think your suggestion of what file should match is a good one. > > Elena just raised a similar issue in annota1.exp. So maybe we should > wait for the resolution there and then adopt the same solution for > 'file' here. (Though the format of 'file' is less crucial here, since > that's what 'fullname' is for.) > All I care about it to match correctly with '+' in the directory names. So maybe all I need is to use string_to_regexp and leave the full path in there. > > The fullname match should probably not change. Since ${srcfilepath} > > is not guaranteed to be the absolute path to the source file. > > Oh, right, duh. I should have tested that before suggesting it! > 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. elena > David Carlton > carlton@math.stanford.edu