This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: bug in gdb.mi/mi-file.exp (or maybe in GDB)
- From: David Carlton <carlton at math dot stanford dot edu>
- To: Bob Rossi <bob_rossi at cox dot net>
- Cc: gdb <gdb at sources dot redhat dot com>, Andrew Cagney <ac131313 at redhat dot com>, Elena Zannoni <ezannoni at redhat dot com>
- Date: 09 Apr 2003 13:38:33 -0700
- Subject: Re: bug in gdb.mi/mi-file.exp (or maybe in GDB)
- References: <ro1ptnvh23e.fsf@jackfruit.Stanford.EDU><20030409203024.GA22063@white>
On Wed, 9 Apr 2003 16:30:24 -0400, Bob Rossi <bob_rossi at cox dot net> 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 at math dot stanford dot edu