delve/pkg/dwarf
aarzilli 3f9875e272 dwarf/line: fix some bugs with the state machine
Adds a test that compares the output of our state machine with the
output of the debug_line reader in the standard library and checks that
they produce the same output for the debug_line section of grafana as
compiled on macOS (which is the most interesting case since it uses cgo
and therefore goes through dsymutil).

A few bugs were uncovered and fixed:

1. is_stmt was reset improperly after a DW_LNS_end_sequence instruction
2. basic_block, prologue_end and epilogue_begin were not reset after a
   DW_LNS_copy instruction
3. some opcodes were not decoded properly if the debug_line section
   declares fewer standard opcodes than we know about.

Fixes #1282
2018-07-31 12:01:14 -07:00
..
dwarfbuilder pkg/proc, pkg/dwarf/op: support DW_OP_piece, DW_OP_regX, DW_OP_fbreg 2017-11-21 11:51:02 -08:00
frame all: Spelling 2018-03-20 11:05:35 +01:00
godwarf proc: support GNU compressed debug sections (go1.11 support) 2018-06-22 11:20:38 -07:00
line dwarf/line: fix some bugs with the state machine 2018-07-31 12:01:14 -07:00
op all: Spelling 2018-03-20 11:05:35 +01:00
reader proc: support inlining 2018-03-26 14:30:38 -04:00
util proc/tests: testing apparatus for complex location expressions 2017-11-21 11:51:02 -08:00