proc: interpret value of DW_AT_inline correctly (#2859)

All values greater than or equal to 1 indicate that the function has
been inlined.
This commit is contained in:
Alessandro Arzilli 2022-01-06 18:07:53 +01:00 committed by GitHub
parent 466f9b8c93
commit d95f26c4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2069,7 +2069,7 @@ func (bi *BinaryInfo) loadDebugInfoMapsCompileUnit(ctxt *loadDebugInfoMapsContex
case dwarf.TagSubprogram:
inlined := false
if inval, ok := entry.Val(dwarf.AttrInline).(int64); ok {
inlined = inval == 1
inlined = inval >= 1
}
if inlined {