[llvm-bugs] [Bug 44511] New: DWARFYAML::EmitDebugAbbrev is missing a final 0

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 10 10:25:40 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44511

            Bug ID: 44511
           Summary: DWARFYAML::EmitDebugAbbrev is missing a final 0
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: alonzakai at gmail.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

llvm-dwarfdump works either with or without a final 0, but the spec may require
it, and the gimli-rs parser errors without it.

Adding

  writeInteger((uint8_t)0, OS, true /* isLittleEndian */);

on the final line of

https://github.com/llvm/llvm-project/blob/ab411801b82783eb7f652701ccfce81b16cf1811/llvm/lib/ObjectYAML/DWARFEmitter.cpp#L78

appears to fix things, but is likely not the proper fix there.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200110/4066b6b4/attachment-0001.html>


More information about the llvm-bugs mailing list