proc: discard variables with address 0 in disassembly sym lookup (#1668)
They are irrelevant and confusing.
This commit is contained in:
parent
327fbdbd44
commit
a3e884e55c
@ -1576,7 +1576,7 @@ func (bi *BinaryInfo) symLookup(addr uint64) (string, uint64) {
|
||||
// report previous variable + offset if i-th variable starts after addr
|
||||
i--
|
||||
}
|
||||
if i > 0 {
|
||||
if i >= 0 && bi.packageVars[i].addr != 0 {
|
||||
return bi.packageVars[i].name, bi.packageVars[i].addr
|
||||
}
|
||||
return "", 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user