From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26345 invoked by alias); 9 Apr 2003 20:38:42 -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 26320 invoked from network); 9 Apr 2003 20:38:42 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 9 Apr 2003 20:38:42 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h39KcYn13013; Wed, 9 Apr 2003 13:38:34 -0700 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Bob Rossi Cc: gdb , Andrew Cagney , Elena Zannoni Subject: Re: bug in gdb.mi/mi-file.exp (or maybe in GDB) References: <20030409203024.GA22063@white> From: David Carlton Date: Wed, 09 Apr 2003 20:38:00 -0000 In-Reply-To: <20030409203024.GA22063@white> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00084.txt.bz2 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. >> 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.) > 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! David Carlton carlton@math.stanford.edu