From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3445 invoked by alias); 9 Apr 2003 20:54: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 3438 invoked from network); 9 Apr 2003 20:54:39 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Apr 2003 20:54:39 -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 h39Ksde10307 for ; Wed, 9 Apr 2003 16:54:39 -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 h39KsdJ32134; Wed, 9 Apr 2003 16:54:39 -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 h39Ksbm10707; Wed, 9 Apr 2003 16:54:37 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id B73672C43E; Wed, 9 Apr 2003 16:58:57 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16020.35216.959565.159509@localhost.redhat.com> Date: Wed, 09 Apr 2003 20:54:00 -0000 To: David Carlton Cc: gdb , bob_rossi@cox.net, Andrew Cagney , Elena Zannoni Subject: Re: bug in gdb.mi/mi-file.exp (or maybe in GDB) In-Reply-To: References: X-SW-Source: 2003-04/txt/msg00085.txt.bz2 David Carlton writes: > When I run gdb.mi/mi-file.exp, I get this failure: > > FAIL: gdb.mi/mi-file.exp: request path info of current source file (basics.c) > > Presumably nobody else is seeing this because I'm the only weirdo who > builds in source. I think it's probably a testsuite bug instead of a > GDB bug, but I don't know exactly what the relevant MI command is > supposed to do, so I'll just show you what I'm seeing: gdb.log says: > > 111^done,line="23",file="gdb.mi/basics.c",fullname="/extra/gdb/mirror/src/gdb/testsuite/gdb.mi/basics.c" > > whereas mi-file.exp is looking for: > > "111\\\^done,line=\"23\",file=\"${srcfilepath}\",fullname=\"/.*/${srcfile}\"" > > where ${srcfilepath} is defined by: > > set srcfilepath [string_to_regexp ${srcdir}/${subdir}/${srcfile}] > > So the test seems to expect 'file' to be the fully qualified path and > for 'fullname' to be anything random that starts with a slash and ends > right. Whereas I'm not getting a fully qualified path for 'file'. > > So: is 'file' really supposed to be a fully qualified path? If so, > what's the difference between 'file' and 'fullname'? (Judging from > the manual, I don't see why 'file' should be an absolute path, but > maybe I'm missing something.) Should 'file' match .*${srcfile} > (without any slashes) and 'fullname' match ${srcfilepath}? > Hmm, I suspect you are right. They should be swapped. Fullname should be the complete path. > Also, should gdb.mi have its own ChangeLog? It's being used > inconsistently, since most of the recent entries got put in > testsuite/ChangeLog. > This is just a historical accident. The MI was contributed by Cygnus after it already had its own Changelogs, and a .texi file. elena > David Carlton > carlton@math.stanford.edu