提交 a3e884e5 编写于 作者: A Alessandro Arzilli 提交者: Derek Parker

proc: discard variables with address 0 in disassembly sym lookup (#1668)

They are irrelevant and confusing.
上级 327fbdbd
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册