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: [PATCH 1/5] Introduce build_debug_file_name


Eli Zaretskii wrote:
> > Date: Thu, 18 Jun 2015 11:55:28 +0100
> > From: Gary Benson <gbenson@redhat.com>
> > Cc: gdb-patches@sourceware.org, cedric.buissart@gmail.com
> > 
> > > But won't we produce "d://foo/bar" as result?
> > 
> > No.  build_debug_file_name strips both leading and trailing slashes.
> > The only ways to get a double slash from build_debug_file_name is to
> > pass one in in the middle of a string.
> > 
> >   build_debug_file_name ("d:", "foo", "bar")          -> "d:/foo/bar"
> >   build_debug_file_name ("d:/", "/foo", "bar")        -> "d:/foo/bar"
> >   build_debug_file_name ("d:///", "///foo///", "bar") -> "d:/foo/bar"
> > 
> > but
> > 
> >   build_debug_file_name("d://foo", "bar") -> "d://foo/bar"
> >   
> > > > I don't believe this series should be blocked unless it breaks
> > > > something that actually worked before.
> > > 
> > > If a fix is very simple, why not make it?
> > 
> > I don't understand, what are you asking me to fix?
> 
> Nothing, given the above.
> 
> Thanks.

Cool, thanks Eli.

Cheers,
Gary

-- 
http://gbenson.net/


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