bug-binutils
[Top][All Lists]
Advanced

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

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


From: Nick Clifton
Subject: Re: [Bug gas/2582] New: dwarf2dbg.c embeds absolute filename path with hard-coded / separator
Date: Tue, 25 Apr 2006 17:04:40 +0100
User-agent: Thunderbird 1.5 (X11/20051201)

Hi Burgess,

dwarf2dbg.c -- line 1476 of CVS version 1.81:

p[len] = '/';

This inserts a filesystem separator character when tacking the source filename back onto the source directory when providing the source-file's path for DWARF2 debugging information. HOWEVER in Windows systems where the filename has been specified in Windows format, i.e. C:\Workspaces\Eclipse
\Blinky\init.s, this creates a filename in the DWARF2 debugging information 
that looks like C:
\Workspaces\Eclipse\Blinky/init.s -- and boy does that confuse ARM's Realview 
debugger for my ARM-
based embedded system.

OK - so here is a patch for you to try out.  (Well uploaded to the PR).

One thing I am particularly worried about is the heuristic I am using to decide when to use the \ directory separator. At the moment it looks for paths starting with a drive letter eg C:. Are there situations where there can be paths without this drive letter which still need the backslash separator ?

Cheers
  Nick




reply via email to

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