mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 17:56:45 +08:00
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:
committed by
GitHub
parent
466f9b8c93
commit
d95f26c4bd
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user