[Lldb-commits] [PATCH] D96549: Support dereferencing a DWARF scalar stack value

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 12 16:10:43 PST 2021


aprantl added inline comments.


================
Comment at: lldb/unittests/Expression/DWARFExpressionTest.cpp:347
+  ExecutionContext exe_ctx(process_sp);
+  EXPECT_THAT_EXPECTED(Evaluate({DW_OP_lit4, DW_OP_deref}, {}, {}, &exe_ctx),
+                       llvm::HasValue(GetScalar(32, 0x07060504, false)));
----------------
vsk wrote:
> Neat, so lit4 is the address and the read pulls out [4, 5, 6, 7].
Yeah that's the lowest sensible address without dereferencing a nullptr :-)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96549/new/

https://reviews.llvm.org/D96549



More information about the lldb-commits mailing list