Skip to content

Commit c43ebff

Browse files
committed
work better with clang builds
1 parent acd2d9c commit c43ebff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/executable.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ def _get_addr_DIEs(self, parent, address, stack):
360360
if self._addr_in_DIE(child, address):
361361
stack.append(child)
362362
return self._get_addr_DIEs(child, address, stack)
363+
elif type(child.tag) is str and 'subprogram' not in child.tag:
364+
ret = self._get_addr_DIEs(child, address, stack)
365+
if ret:
366+
return ret
367+
363368
return stack
364369

365370
# get line info for given address

0 commit comments

Comments
 (0)