This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Add -s option to source command.


> 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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]