http://d.puremagic.com/issues/show_bug.cgi?id=3987

           Summary: [gdb] Invalid DWARF output for function pointers
           Product: D
           Version: 1.055
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: rob...@octarineparrot.com


--- Comment #0 from Robert Clipsham <rob...@octarineparrot.com> 2010-03-19 
16:18:50 PDT ---
The following program causes dmd to produce invalid DWARF output, rendering the
program impossible to debug with gdb:
----
void function() myfunc;
void main(){} 
----
When compiled with either -g or -gc, causes this error in gdb when setting a
breakpoint (eg b _Dmain):
----
Die: DW_TAG_padding (abbrev = 0, offset = 0)
        has children: FALSE
        attributes:
Dwarf Error: Cannot find type of die [in module /tmp/test]
----
>From what I can gather, the DWARF output is correct (objdump --dwarf gives no
errors), but the padding before .debug_info is incorrect, causing gdb to be
unable to read it properly.

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

Reply via email to