[Lldb-commits] [PATCH] D96549: Support dereferencing a DWARF scalar stack value
Vedant Kumar via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 12 16:09:22 PST 2021
vsk accepted this revision.
vsk added a comment.
This revision is now accepted and ready to land.
Thanks, lgtm.
================
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)));
----------------
Neat, so lit4 is the address and the read pulls out [4, 5, 6, 7].
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96549/new/
https://reviews.llvm.org/D96549
More information about the lldb-commits
mailing list