https://bugs.llvm.org/show_bug.cgi?id=40525
Bug ID: 40525
Summary: Incorrect encoding of DWARF 5 loc list entry
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: DebugInfo
Assignee: unassignedb...@nondot.org
Reporter: paul_robin...@playstation.sony.com
CC: jdevliegh...@apple.com, keith.wal...@arm.com,
llvm-bugs@lists.llvm.org,
paul_robin...@playstation.sony.com
Report from Philip Craig, philipjcr...@gmail.com, quoted here:
I've been working on DWARF v5 parsing in another project, and I was
testing on LLVM's output, and I noticed a bug in the location list
entry.
See section 2.6.2 of the v5 standard:
"A counted location description operand consists of an unsigned ULEB
integer giving the length of the location description (see Section 2.6.1 on
page 39) that immediately follows."
but LLVM encodes the length as a 16 bit int here:
https://github.com/llvm-mirror/llvm/blob/c35ddbd43e57090947d74b7670d53ee1106c50f2/lib/CodeGen/AsmPrinter/DwarfDebug.cpp#L1981
This function is correct for DWARF v4, but needs updating for entries
in .debug_loclists. llvm-dwarfdump will need fixing to parse it
correctly too. I've checked that gcc emits a ULEB and gdb parses it as
a ULEB.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs