This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Bug in dwarf2out.c:output_file_names()
- To: drepper at cygnus dot com, rth at redhat dot com
- Subject: Re: Bug in dwarf2out.c:output_file_names()
- From: Mike Stump <mrs at windriver dot com>
- Date: Tue, 23 Jan 2001 03:21:49 -0800 (PST)
- Cc: gcc at gcc dot gnu dot org, gdb at sources dot redhat dot com, kettenis at wins dot uva dot nl
> From: Ulrich Drepper <drepper@redhat.com>
> Date: 23 Jan 2001 00:48:09 -0800
> With a bit of thinking I came up with the appended patch.
> + if (*s1 == '/' && *s2 == '/')
If '/' is speced as the only possible prefix than this is ok. If this
code has to work on Windows, where A:/foo A:\foo \foo are all
prefixes, then the code is wrong. Please look around for other places
where this test is done for the right incantation. (binutils/gcc) If
you wrap the use in is_absolute (name) you will make it easier to win,
if you don't feel like doing the work now.