delve/service/test
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
..
common_test.go service,terminal: apply substitute path to trace/break argument 2020-11-17 16:41:35 +01:00
integration1_test.go proc/*: remove proc.Thread.Blocked, refactor memory access (#2206) 2020-11-09 11:28:40 -08:00
integration2_test.go Go 1.16 support branch (#2214) 2021-01-05 10:56:30 -08:00
variables_test.go proc: make nested function calls work when stopped at a sw breakpoint (#2232) 2020-12-10 09:03:11 -08:00