Bug 22845 – DWARF .debug_line section is not standard compliant

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2022-03-04T02:28:00Z
Last change time
2022-03-04T04:38:19Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira

Comments

Comment #0 by contact — 2022-03-04T02:28:00Z
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.
Comment #1 by dlang-bot — 2022-03-04T02:35:05Z
@ljmf00 created dlang/dmd pull request #13752 "Fix issue 22845: DWARF .debug_line section is not standard compliant" fixing this issue: - Fix issue 22845: DWARF .debug_line section is not standard compliant According to DWARF standard, DW_LNS_set_isa standard opcode takes one operand, the generator is reporting 0, wrongly. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13752
Comment #2 by dlang-bot — 2022-03-04T04:38:19Z
dlang/dmd pull request #13752 "Fix issue 22845: DWARF .debug_line section is not standard compliant" was merged into master: - a969b998e59ed730915f19b9d27d694304f096c1 by Luís Ferreira: Fix issue 22845: DWARF .debug_line section is not standard compliant According to DWARF standard, DW_LNS_set_isa standard opcode takes one operand, the generator is reporting 0, wrongly. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13752