This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/5] Introduce build_debug_file_name
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: gdb-patches at sourceware dot org, cedric dot buissart at gmail dot com
- Date: Thu, 18 Jun 2015 15:11:02 +0300
- Subject: Re: [PATCH 1/5] Introduce build_debug_file_name
- Authentication-results: sourceware.org; auth=none
- References: <1434447768-17328-1-git-send-email-gbenson at redhat dot com> <1434447768-17328-2-git-send-email-gbenson at redhat dot com> <83zj3zn21q dot fsf at gnu dot org> <20150617094734 dot GA9671 at blade dot nx> <83a8vymgmg dot fsf at gnu dot org> <20150618105528 dot GA2644 at blade dot nx>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.