diff --git a/scripts/code.py b/scripts/code.py index 8d0d69ac..aa93b8b3 100755 --- a/scripts/code.py +++ b/scripts/code.py @@ -450,10 +450,8 @@ def collect_dwarf_info(obj_path, tags=None, *, off=int(m.group('off'), 16), tag=m.group('tag').strip(), ) - # keep track of top-level entries - if (entry.level == 1 and ( - # unless this entry is filtered - tags is None or entry.tag in tags)): + # keep track of unfiltered entries + if tags is None or entry.tag in tags: info[entry.off] = entry # store entry in parent levels[entry.level] = entry diff --git a/scripts/ctx.py b/scripts/ctx.py index 6bbc0ea3..b18d4d0e 100755 --- a/scripts/ctx.py +++ b/scripts/ctx.py @@ -459,10 +459,8 @@ def collect_dwarf_info(obj_path, tags=None, *, off=int(m.group('off'), 16), tag=m.group('tag').strip(), ) - # keep track of top-level entries - if (entry.level == 1 and ( - # unless this entry is filtered - tags is None or entry.tag in tags)): + # keep track of unfiltered entries + if tags is None or entry.tag in tags: info[entry.off] = entry # store entry in parent levels[entry.level] = entry diff --git a/scripts/data.py b/scripts/data.py index e394ac95..54f9d65b 100755 --- a/scripts/data.py +++ b/scripts/data.py @@ -450,10 +450,8 @@ def collect_dwarf_info(obj_path, tags=None, *, off=int(m.group('off'), 16), tag=m.group('tag').strip(), ) - # keep track of top-level entries - if (entry.level == 1 and ( - # unless this entry is filtered - tags is None or entry.tag in tags)): + # keep track of unfiltered entries + if tags is None or entry.tag in tags: info[entry.off] = entry # store entry in parent levels[entry.level] = entry diff --git a/scripts/structs.py b/scripts/structs.py index d03299f0..c4429b3a 100755 --- a/scripts/structs.py +++ b/scripts/structs.py @@ -347,10 +347,8 @@ def collect_dwarf_info(obj_path, tags=None, *, off=int(m.group('off'), 16), tag=m.group('tag').strip(), ) - # keep track of top-level entries - if (entry.level == 1 and ( - # unless this entry is filtered - tags is None or entry.tag in tags)): + # keep track of unfiltered entries + if tags is None or entry.tag in tags: info[entry.off] = entry # store entry in parent levels[entry.level] = entry