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.
This commit is contained in:
aarzilli 2017-11-28 15:42:50 +01:00 committed by Derek Parker
parent 3f2335f289
commit 0fc4ed805b

@ -236,6 +236,9 @@ func (sm *StateMachine) PCToLine(pc uint64) (string, int, bool) {
break break
} }
} }
if sm.valid {
return sm.file, sm.line, true
}
return "", 0, false return "", 0, false
} }