delve/pkg/dwarf/line
Alessandro Arzilli 6dd686ca49
Go 1.16 support branch (#2214)
* proc: misc test fixes for Go 1.16

* proc: fix cgo stacktraces in Go 1.16 with simplified C -> Go call path

* dwarf/line: make dwarf/line correct when '\\' are used

Our code depends heavily on paths being '/' separated because go always
produced '/' separated file paths. The call to filepath.Join will
normalize the paths, on windows, to always be '\\' separated, which
violated our assumptions.

This didn't use to be a problem because the codepath that calls
filepath.Join was never exercised by executable files produced by Go,
but Go 1.16 started producing debug_line sections that use the
directory table with https://go-review.googlesource.com/c/go/+/263017/.

Fix this to always use path.Join after making sure, on windows, to
always normalize paths to use '/' as a separator. Replace the use of
filepath.IsAbs with an operating system independent version.

* goversion: bump supported Go version
2021-01-05 10:56:30 -08:00
..
_testdata dwarf/line: fix some bugs with the state machine 2018-07-31 12:01:14 -07:00
line_parser_test.go Go 1.16 support branch (#2214) 2021-01-05 10:56:30 -08:00
line_parser.go Go 1.16 support branch (#2214) 2021-01-05 10:56:30 -08:00
parse_util.go dwarf/line: support DWARF version 5 (#2090) 2020-07-21 13:39:09 -07:00
state_machine_test.go dwarf/line: do not consider end of sequence entries valid (#2235) 2020-12-04 09:35:57 -08:00
state_machine.go dwarf/*: add godoc comments (#2265) 2020-12-14 09:31:11 -08:00