[Lldb-commits] [lldb] [lldb] Recurse through DW_AT_signature when looking for attributes (PR #107241)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 10 03:57:52 PDT 2024


labath wrote:

> Wouldn't block the PR on this, but is there a way the `ElaboratingDIIterator` changes can be tested? Maybe a unit-test where we instantiate `elaborating_dies` on something that has `DW_AT_signature` and makes sure we actually iterate over the original DWARF?

We couldn't make a meaningful test in the current form because the class is defined in the cpp file, and it's only user uses it in a context where DW_AT_signature doesn't make sense. We could move it to the header file, and then test it through its public API, but I'm somewhat reluctant to do that, as we don't have a use case for it. I guess that could be interpreted as a reason to not make this change to it (and that's the thing I'd probably do if you insisted on testing), but it's also a very trivial change that's very unlikely to go wrong.

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


More information about the lldb-commits mailing list