bug-binutils
[Top][All Lists]
Advanced

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

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


From: nickc at redhat dot com
Subject: [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator
Date: 26 Apr 2006 10:22:06 -0000

------- Additional Comments From nickc at redhat dot com  2006-04-26 10:22 
-------
Subject: Re:  dwarf2dbg.c embeds absolute filename path with
 hard-coded / separator

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






-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2582

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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