proc: handle DW_TAG_subprogram with a nochildren abbrev

On macOS, externally linked programs will have an abbrev for
DW_TAG_subprogram without the haschildren flag set. We should handle
this case instead of expecting all DW_TAG_subprogram entries to have
list of children.

Fixes #1034
This commit is contained in:
aarzilli
2017-12-04 11:05:05 +01:00
committed by Derek Parker
parent 17bd4b52e8
commit 77c955365f
2 changed files with 19 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func (vrdr *VariableReader) Next() bool {
}
}
if recur {
if recur && vrdr.entry.Children {
vrdr.depth++
} else {
if vrdr.depth == 0 {