This is an archive of the discontinued LLVM Phabricator instance.

DebugInfo: Do not use the DWARF Version for the .debug_pubnames or .debug_pubtypes version field
ClosedPublic

Authored by majnemer on Aug 20 2013, 10:27 PM.

Details

Summary

LLVM would generate DWARF with version 3 in the .debug_pubname and
.debug_pubtypes version fields. This would lead SGI dwarfdump to fail
parsing the DWARF with (in the instance of .debug_pubnames) would exit
with:
dwarfdump ERROR: dwarf_get_globals: DW_DLE_PUBNAMES_VERSION_ERROR (123)

This fixes PR16950.

Diff Detail

Event Timeline

echristo accepted this revision.Aug 20 2013, 10:48 PM

LGTM.

Thanks.

FWIW llvm-commits for the back end patches next time :)

-eric

majnemer closed this revision.Aug 20 2013, 11:15 PM