[Lldb-commits] [PATCH] D114008: Draft PR for the deque, stack, queue lldb data formatters

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 25 02:35:25 PST 2021


labath added a comment.

In D114008#3153211 <https://reviews.llvm.org/D114008#3153211>, @danilashtefan wrote:

> As we discussed offline, I add the print tests, since SBValue.GetValue() doesn't work for complex structures

There are different ways you can do that depending on what you want to test precisely. You can (programatically, using loops?) construct nested `ValueCheck` structures and pass that to the `expect_var_path` .

Or you can, issue a bunch of smaller `expect_var_path` commands targetting individual subobjects, again using loops (`expect_var_path("myobj[%d]"%i, ...`).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114008



More information about the lldb-commits mailing list