delve/pkg/dwarf/line
Alessandro Arzilli fb3941324b dwarf/line: fix state machine behavior with multi-sequence units (#1681)
A compile unit can produce a debug_line program consisting of multiple
sequences according to the DWARF standard. The standard guarantees that
addresses monotonically increment within a single sequence but
different sequences may not follow this rule.

This commit changes dwarf/line (in particular PCToLine and
AllPCsBetween) to support debug_line sections containing units with
multiple sequences.

TestPCToLine needs to be changed so that it picks valid addresses (i.e.
addresses covered by a sequence) as values for basePC, instead of just
rounding.

Fixes #1694
2019-10-07 09:54:32 -07:00
..
_testdata dwarf/line: fix some bugs with the state machine 2018-07-31 12:01:14 -07:00
line_parser_test.go dwarf/line: fix state machine behavior with multi-sequence units (#1681) 2019-10-07 09:54:32 -07:00
line_parser.go *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
state_machine_test.go dwarf/line: fix state machine behavior with multi-sequence units (#1681) 2019-10-07 09:54:32 -07:00
state_machine.go dwarf/line: fix state machine behavior with multi-sequence units (#1681) 2019-10-07 09:54:32 -07:00