This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/28047] New: DWARF output_file_names should really understand DOS pathnames
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 22:03:22 -0000
- Subject: [Bug debug/28047] New: DWARF output_file_names should really understand DOS pathnames
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
While doing some DWARF-related work, I noticed that output_file_names in
dwarf2out.c parses filenames assuming they are UNIX, things like:
/* Skip all leading "./". */
f = d->filename;
while (f[0] == '.' && f[1] == '/')
f += 2;
I'm fairly sure it won't work right on DOS-style pathnames, even something as
simple as \foo\bar.h won't be handled right.
Probably all the filename handling in dwarf2out.c should be checked for related
issues.
--
Summary: DWARF output_file_names should really understand DOS
pathnames
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: geoffk at gcc dot gnu dot org
GCC target triplet: *-*-mingw
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28047