bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-c


From: Nick Clifton
Subject: Re: [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator
Date: Wed, 26 Apr 2006 11:21:55 +0100
User-agent: Thunderbird 1.5 (X11/20051201)

Hi Bill,

Another thought -- why not look for the THIRD character to be a backslash? This will handle not only absolute paths that start with <single drive letter>:\ but also relative paths that start with ..\ -- what do you think? --Bill

That wouldn't work. Not all relative paths start with "..". For example if the file is in a sub-directory of the build directory then the path might just be "<sub-dir-name>/<file-name>".

In addition it is possible that the backslash character might be there to escape an unconventional path name character. For example suppose that (in a UNIX style naming convention) the root directory contains a sub-directory called "A Directory", and the code wants to reference a file called "Foo" inside this directory. This would appear as

  /A\ Directory/Foo

Cheers
  Nick








reply via email to

[Prev in Thread] Current Thread [Next in Thread]