This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] fullname attribute for GDB/MI stack frames
On Tue, May 03, 2005 at 06:40:15AM +0300, Eli Zaretskii wrote:
> > Date: Mon, 2 May 2005 16:49:00 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> >
> > > DOS/Windows file names can be gray, not only white or black. Examples
> > > include \abc and d:foo. While not entirely free of ``current''
> > > something, they are much closer to absolute file names than to
> > > relative file names, in the sense that you don't prepend cwd to them
> > > to get an absolute file name (which is what 99.99% of programs
> > > _really_ want to know when they are testing a file name for being
> > > absolute).
> >
> > That's not what we're testing for in the testsuite, though.
>
> What _are_ we trying to test?
GDB is outputting an absolute path, which will be used by either the
user or by a front end. In either case, it should locate the file
entirely unambiguously. Otherwise the IDE may display the wrong source
file to the user, et cetera.
> > I think that we should reject both \abc and d:foo here.
>
> I don't think so.
Could you explain why? What should the front end receiving this
information do with it?
--
Daniel Jacobowitz
CodeSourcery, LLC