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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to