This is the mail archive of the gdb@sources.redhat.com 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]

Re: Bug in dwarf2out.c:output_file_names()


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

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