delve/pkg/dwarf
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
..
dwarfbuilder dwarf/*: add godoc comments (#2265) 2020-12-14 09:31:11 -08:00
frame dwarf/*: add godoc comments (#2265) 2020-12-14 09:31:11 -08:00
godwarf dwarf/loclist,godwarf,proc: support DWARF version 5 loclists and debug_addr (#2097) 2020-08-17 17:19:46 -07:00
line Go 1.16 support branch (#2214) 2021-01-05 10:56:30 -08:00
loclist dwarf/loclist,godwarf,proc: support DWARF version 5 loclists and debug_addr (#2097) 2020-08-17 17:19:46 -07:00
op proc/*: only load floating point registers when needed (#1981) 2020-05-13 11:56:50 -07:00
reader dwarf/reader: minor comments around variable resolving (#2253) 2020-12-08 11:46:40 -08:00
util dwarf/*: add godoc comments (#2265) 2020-12-14 09:31:11 -08:00