Fix incorrect form test in SymbolFileDWARF
authorPavel Labath <labath@google.com>
Tue, 26 Jul 2016 08:16:19 +0000 (08:16 +0000)
committerPavel Labath <labath@google.com>
Tue, 26 Jul 2016 08:16:19 +0000 (08:16 +0000)
commit57d053511fbd1f2dd30f6d5cc729846f0e0aa3e3
tree334be072cc71aff716160185a153758fa3701b56
parentf7e7fdd5cfebf4a8a30e4b4dce410a237f13a17c
Fix incorrect form test in SymbolFileDWARF

Summary:
We were checking whether an attribute is in block form by getting the block data pointer, which
was not correct as the pointer be null even if the attribute is in block form. Other places in
the file already use the correct test.

To make this work, I've needed to add DW_FORM_exprlock to the list of "block" forms, which seems
correct as that is how we are parsing it.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D22756

llvm-svn: 276735
lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp