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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to