[Top][All Lists]
[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: |
25 Apr 2006 16:04:49 -0000 |
------- Additional Comments From nickc at redhat dot com 2006-04-25 16:04
-------
Subject: Re: New: dwarf2dbg.c embeds absolute filename path
with hard-coded / separator
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
--
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.
- [Bug gas/2582] New: dwarf2dbg.c embeds absolute filename path with hard-coded / separator, burgess at impulse dot net, 2006/04/17
- Re: [Bug gas/2582] New: dwarf2dbg.c embeds absolute filename path with hard-coded / separator, Nick Clifton, 2006/04/25
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator,
nickc at redhat dot com <=
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator, nickc at redhat dot com, 2006/04/25
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator, nickc at redhat dot com, 2006/04/25
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator, burgess at impulse dot net, 2006/04/25
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator, burgess at impulse dot net, 2006/04/25
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator, nickc at redhat dot com, 2006/04/26
- [Bug gas/2582] dwarf2dbg.c embeds absolute filename path with hard-coded / separator, burgess at impulse dot net, 2006/04/26