Fix DW_OP_convert to resolve the CU relative offset correctly.
authorGreg Clayton <gclayton@fb.com>
Fri, 9 Sep 2022 23:45:33 +0000 (16:45 -0700)
committerGreg Clayton <gclayton@fb.com>
Mon, 12 Sep 2022 23:53:19 +0000 (16:53 -0700)
commit376c7bd92aff0e4256b2842400936a9b29343045
tree5580ee4d23d6122ff8bfd3ee8ae8c7029412321f
parentc9ccaf176de7d7104492e19484f18e4b3ec1ba42
Fix DW_OP_convert to resolve the CU relative offset correctly.

Debugging some DWARF5 binaries was causing errors to appear when DWARFExpression::Evaluate was called:

    error: GetDIE for DIE 0x31 is outside of its CU 0x123450

The issue is in the DWARF expression evaluator. Fixed with this.

Differential Revision: https://reviews.llvm.org/D133623
lldb/source/Expression/DWARFExpression.cpp
lldb/unittests/Expression/DWARFExpressionTest.cpp
lldb/unittests/TestingSupport/Symbol/YAMLModuleTester.cpp
lldb/unittests/TestingSupport/Symbol/YAMLModuleTester.h