[Lldb-commits] [lldb] Use `llvm::APInt` for `VariantMember` Discriminants (PR #188487)

via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 14 08:14:46 PDT 2026


Walnut356 wrote:

>You don't have to write a unit test for this (I think). Either a shell test ([main/lldb/test/Shell/SymbolFile/DWARF](https://github.com/llvm/llvm-project/tree/main/lldb/test/Shell/SymbolFile/DWARF?rgh-link-date=2026-04-14T13%3A30%3A45Z)) or API test ([main/lldb/test/API](https://github.com/llvm/llvm-project/tree/main/lldb/test/API?rgh-link-date=2026-04-14T13%3A30%3A45Z); no DWARF specific directory afaik) should suffice.

I might be dumb but i have even less idea of how i would implement that. I cannot currently generate a complete `x86_64-unknown-linux-gnu` executable on my end (i don't have the build environment to properly link it and it's a pain in the ass to fix that atm). Unless i'm misunderstanding, a shell or API test would require something that LLDB can run? 

>Usually you can start with a rather large YAML file and remove things you don't need.

That's sorta my point. I don't know what I do or don't need because i have an incredibly limited understanding of how ELF and DWARF work.

https://github.com/llvm/llvm-project/pull/188487


More information about the lldb-commits mailing list