This is an archive of the discontinued LLVM Phabricator instance.

Fix DW_FORM_strp parsing
ClosedPublic

Authored by jankratochvil on Sep 4 2017, 9:00 AM.

Details

Summary

Testing on Fedora 26 x86_64. This patch has no effect on the LLDB testsuite.
With my later DWZ patch applied I would get the following error without this patch:

59	          "{0x%8.8x}: invalid abbreviation code %u, please file a bug and "
60	          "attach the file at the start of this error message",
61	          m_offset, (unsigned)abbr_idx);

Also I find it somehow obvious. Sorry for no extra testcase.

Diff Detail

Repository
rL LLVM

Event Timeline

jankratochvil created this revision.Sep 4 2017, 9:00 AM
clayborg accepted this revision.Sep 5 2017, 6:54 AM

Yikes, I don't see how this was working at all, but it has been that way for a while? Good catch.

This revision is now accepted and ready to land.Sep 5 2017, 6:54 AM
This revision was automatically updated to reflect the committed changes.