[Lldb-commits] [PATCH] D79559: [lldb] Also recognize DWARF UTF base types using their size

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 7 03:21:24 PDT 2020


labath added a comment.

Thanks for the patch.

In D79559#2024573 <https://reviews.llvm.org/D79559#2024573>, @Geod24 wrote:

> I wasn't sure what would be the best place / how to add an unit test for this. Could a reviewer provide some pointers ?


I think the simplest approach would be to create some assembly representing a compile unit which declares a couple of global variables of this type and then run "lldb -o "target variable var1 var2..." over the compiled object. You can look at some of the files in `test/Shell/SymbolFile/DWARF` (e.g. `DW_OP_piece-struct.s`) for inspiration. Using llvm IR instead of assembly would work too, assuming you can represent this thing in IR..


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79559





More information about the lldb-commits mailing list