[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/23941] New: .debug_line section has a dwarf version set to 2 wh
From: |
gagou7 at gmail dot com |
Subject: |
[Bug gas/23941] New: .debug_line section has a dwarf version set to 2 while supporting opcode from dwarf3 |
Date: |
Fri, 30 Nov 2018 15:41:15 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23941
Bug ID: 23941
Summary: .debug_line section has a dwarf version set to 2 while
supporting opcode from dwarf3
Product: binutils
Version: 2.32 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: gagou7 at gmail dot com
Target Milestone: ---
I am developing a tool for parsing the DWARF format based on the specs
(http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf). The dwarf 2.0 specs defines 9
opcode inside the .debug_line section.
Looking at the source code of gas, those line are inconsistant in regards to
the spec for DWARF 2.0.
dwarf2dbg.c:102 #define DWARF2_LINE_VERSION 2
dwarf2dbg.c:128 #define DWARF2_LINE_OPCODE_BASE 13
The main issue is that gas, while saying it is DWARF 2.0 compliant, support in
fact 3 more opcodes
- DW_LNS_set_prologue_end
- DW_LNS_set_epilogue_begin
- DW_LNS_set_isa
The fix should be to set DWARF2_LINE_VERSION default to 3 like for ld.gold for
example.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/23941] New: .debug_line section has a dwarf version set to 2 while supporting opcode from dwarf3,
gagou7 at gmail dot com <=