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

--- Comment #0 from Robert Clipsham <> 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
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:
------- You are receiving this mail because: -------

Reply via email to