diff --git a/pkg/proc/types.go b/pkg/proc/types.go index 88a4e261..1940b26a 100644 --- a/pkg/proc/types.go +++ b/pkg/proc/types.go @@ -134,7 +134,7 @@ func runtimeTypeToDIE(_type *Variable, dataAddr uint64) (typ godwarf.Type, kind // resolveParametricType returns the real type of t if t is a parametric // type, by reading the correct dictionary entry. -func resolveParametricType(tgt *Target, bi *BinaryInfo, mem MemoryReadWriter, t godwarf.Type, dictAddr uint64) (godwarf.Type, error) { +func resolveParametricType(bi *BinaryInfo, mem MemoryReadWriter, t godwarf.Type, dictAddr uint64) (godwarf.Type, error) { ptyp, _ := t.(*godwarf.ParametricType) if ptyp == nil { return t, nil diff --git a/pkg/proc/variables.go b/pkg/proc/variables.go index 58308942..e24c8240 100644 --- a/pkg/proc/variables.go +++ b/pkg/proc/variables.go @@ -1188,7 +1188,7 @@ func extractVarInfoFromEntry(tgt *Target, bi *BinaryInfo, image *Image, regs op. return nil, err } - t, err = resolveParametricType(tgt, bi, mem, t, dictAddr) + t, err = resolveParametricType(bi, mem, t, dictAddr) if err != nil { // Log the error, keep going with t, which will be the shape type logflags.DebuggerLogger().Errorf("could not resolve parametric type of %s", n)