www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3540] New: Another DWARF line number fix

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3540

           Summary: Another DWARF line number fix
           Product: D
           Version: 1.051
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: patch, wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: nfxjfg gmail.com


--- Comment #0 from nfxjfg gmail.com 2009-11-21 18:24:25 PST ---
There's a small detail wrong with the DWARF line number information: your code
makes wrong assumptions when the line number state machine register state is
reset. The DWARF specification says it's reset after DW_LNE_end_sequence, but
as your code resets the register state, it doesn't emit a DW_LNE_end_sequence.
The result is that some address/line number ranges in .debug_line are
completely bogus.

This patch provides a simple fix by moving DW_LNE_end_sequence to where it is
appropriate.

(Note that some DWARF consumers, such as GNU BFD, are able to deal with the
buggy line number information.)

(I hope the wrong-code keyword isn't inappropriate here.)

Note that this bug is unrelated to bug 3214, which has yet to be fixed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3540



--- Comment #1 from nfxjfg gmail.com 2009-11-21 18:25:04 PST ---
Created an attachment (id=513)
fix for .debug_line output

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3540


Leandro Lucarella <llucax gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax gmail.com


--- Comment #2 from Leandro Lucarella <llucax gmail.com> 2009-11-22 14:26:54
PST ---
SVN commit: http://www.dsource.org/projects/dmd/changeset/265

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3540


nfxjfg gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #3 from nfxjfg gmail.com 2009-11-22 21:38:32 PST ---
Great! That means this particular bug is fixed in the SVN version.
Now Walter, what about bug 3214? Please comment!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3540


Koroskin Denis <2korden gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |2korden gmail.com
         Resolution|FIXED                       |


--- Comment #4 from Koroskin Denis <2korden gmail.com> 2009-11-24 04:10:07 PST
---
Please, don't close bugs until a fix is proven to work. There is no DMD release
that has this bug fixed yet.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 24 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3540


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #5 from Walter Bright <bugzilla digitalmars.com> 2009-12-06
00:48:31 PST ---
Fixed dmd 1.053 and 2.037

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 06 2009