[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
Thu Sep 5 03:57:30 PDT 2024


================
@@ -50,7 +50,8 @@ class ElaboratingDIEIterator
     m_worklist.pop_back();
 
     // And add back any items that elaborate it.
-    for (dw_attr_t attr : {DW_AT_specification, DW_AT_abstract_origin}) {
+    for (dw_attr_t attr :
+         {DW_AT_specification, DW_AT_abstract_origin, DW_AT_specification}) {
----------------
labath wrote:

Yes, I meant that to be DW_AT_signature. Oops.

This isn't really needed for this patch, but I thought it makes sense to add it for symmetry. The class is only currently used in `DWARFDIE::IsMethod` which does not make sense for types, but I could imagine this class being used elsewhere as well.

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


More information about the lldb-commits mailing list