proc/variable: changed Value's type to constant.Value

This commit is contained in:
aarzilli
2015-10-21 09:06:36 +02:00
committed by Derek Parker
parent 50b5fc92e2
commit d65e832524
4 changed files with 53 additions and 28 deletions

View File

@ -5,6 +5,7 @@ import (
"debug/gosym"
"encoding/binary"
"fmt"
"go/constant"
"os"
"path/filepath"
"runtime"
@ -707,7 +708,7 @@ func (dbp *Process) getGoInformation() (ver GoVersion, isextld bool, err error)
return
}
ver, ok := parseVersionString(vv.Value.(string))
ver, ok := parseVersionString(constant.StringVal(vv.Value))
if !ok {
err = fmt.Errorf("Could not parse version number: %v\n", vv.Value)
return