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:
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user