提交 0fc4ed80 编写于 作者: A aarzilli 提交者: Derek Parker

dwarf/line: fix output for the last line of a compile unit

The last entry of the debug_line table is supposed to be valid for
every PC address greater than its address.
上级 3f2335f2
......@@ -236,6 +236,9 @@ func (sm *StateMachine) PCToLine(pc uint64) (string, int, bool) {
break
}
}
if sm.valid {
return sm.file, sm.line, true
}
return "", 0, false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册