[Lldb-commits] [lldb] [lldb][DWARF] Change GetAttributes to always visit current DIE before recursing (PR #123261)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 17 01:54:37 PST 2025
================
@@ -309,10 +319,10 @@ void DWARFDebugInfoEntry::GetAttributes(DWARFUnit *cu,
switch (attr) {
case DW_AT_sibling:
case DW_AT_declaration:
- if (curr_depth > 0) {
+ if (seen.size() > 1 && !is_first_die) {
----------------
labath wrote:
```suggestion
if (!is_first_die) {
```
I don't think the other condition is necessary.
https://github.com/llvm/llvm-project/pull/123261
More information about the lldb-commits
mailing list