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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to