Skip to content

Commit

Permalink
fix: reuse helper
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Jul 6, 2024
1 parent c10a114 commit ed4d3e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/knowninfo/dwarf.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,7 @@ func (k *KnownInfo) AddDwarfSubProgram(
added := pkg.AddFuncIfNotExists(filename, fn)

if added {
k.KnownAddr.TextAddrSpace.Insert(&entity.Addr{
AddrPos: &entity.AddrPos{Addr: addr, Size: size, Type: entity.AddrTypeText},
Pkg: pkg,
Function: fn,
SourceType: entity.AddrSourceDwarf,
Meta: entity.DwarfMeta{},
})
k.KnownAddr.InsertTextFromDWARF(addr, size, fn, entity.DwarfMeta{})
}
}

Expand Down

0 comments on commit ed4d3e9

Please sign in to comment.