[RFA] Add -s option to source command.

Eli Zaretskii eliz@gnu.org
Fri Apr 9 19:31:00 GMT 2010


> Date: Fri, 9 Apr 2010 11:12:27 -0700
> From: Doug Evans <dje@google.com>
> Cc: tromey@redhat.com, gdb-patches@sourceware.org
> 
> > This is fine, but what if @var{filename} is @file{d:/foo/myscript} (on
> > Windows)?
> 
> source.c:openp() doesn't handle that case, it just blindly concatenates.
> [presumably because it hasn't needed to]
> 
> I don't have an opinion on what *should* happen here.
> Possibilities are to either not try or remove the drive spec.

My vote is for removing the drive letter.  The other alternative means
that absolute file names are handled inconsistently across platforms
(I assume that not trying to look for absolute file name on Posix
platforms will not be a useful behavior).



More information about the Gdb-patches mailing list