mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +08:00
proc: remove unused parameter from resolveParametricType (#3276)
This commit is contained in:
committed by
GitHub
parent
c728f90dcf
commit
cf65f94776
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user