delve/pkg/config
Sergio Lopez 46923142cb pkg/config: Rewind *File after writeDefaultConfig
Otherwise the later call to ioutil.ReadAll will return an empty array.

This issue is visible from the user's perspective due to the new
debug-info-directories parameter, which does have a value in the default
config.

As a consequence, the first 'dlv' invocation fails to find the separate
debug info files, while the second one works as expected:

$ ./dlv core /usr/bin/dockerd-current /case/dockerd.1234
could not find external debug info file
$ ./dlv core /usr/bin/dockerd-current /case/dockerd.1234
Type 'help' for list of commands.
(dlv) exit
2018-11-26 09:54:31 -08:00
..
config.go pkg/config: Rewind *File after writeDefaultConfig 2018-11-26 09:54:31 -08:00
split_test.go terminal: add config command 2017-09-08 10:27:32 -07:00
split.go pkg/config: Clean up godoc lint issues 2018-11-08 10:16:42 -08:00