www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22845] New: DWARF .debug_line section is not standard compliant

https://issues.dlang.org/show_bug.cgi?id=22845

          Issue ID: 22845
           Summary: DWARF .debug_line section is not standard compliant
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: contact lsferreira.net

GNU dwarfdump can't print .debug_line section due to bad opcodes operand:

------------------

dwarfdump ERROR:  ERROR: dwarf_srcfiles problem :  DW_DLE_LINE_NUM_OPERANDS_BAD
(56). Attempting to continue.

CU Name = <unknown>
CU Producer = Digital Mars D v2.099.0-rc.1-70-g9d1fb6f6c-dirty
DIE OFF = 0x0000000b GOFF = 0x0000000b, Low PC = unknown   , High PC = unknown  

.debug_line: line number info for a single cu

dwarfdump ERROR:  dwarf_srclines:  DW_DLE_LINE_NUM_OPERANDS_BAD (56).
Attempting to continue.

CU Name = <unknown>
CU Producer = Digital Mars D v2.099.0-rc.1-70-g9d1fb6f6c-dirty
DIE OFF = 0x0000000b GOFF = 0x0000000b, Low PC = unknown   , High PC = unknown  

There were 2 DWARF errors reported: see ERROR above.

--
Mar 03 2022