delve/pkg
aarzilli 7e86d6749f dwarf/godwarf: tolerate cyclical type DIEs
As specified in line dwarf/godwarf/type.go:507 the typeCache entry
should always be set before recursive calls to readType to avoid infite
recursion.
Most code in readType already does this but some of the code added
later to handle Go types was wrong.
Fix this bug and also fix the String and Size methods of Type so that
they handle recursive types "correctly" (i.e. they don't recur
forever).

No test is added for this since all legitimate uses of cyclical types
were already handled correctly and the malformed types emitted by the
go compiler will probably be removed in 1.12.
See: https://github.com/golang/go/issues/29264

Fixes #1444
2019-01-04 14:52:28 -08:00
..
config pkg/config: Using current directory for config as fallback (#1425) 2018-11-28 13:21:21 -08:00
dwarf dwarf/godwarf: tolerate cyclical type DIEs 2019-01-04 14:52:28 -08:00
goversion proc: correctly set G struct offset for 1.11 2018-06-11 11:09:02 -07:00
logflags proc/core: add support for windows minidumps 2018-11-21 12:17:16 -08:00
proc *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
terminal *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
version all: Bump to v1.1.0 2018-08-16 13:20:21 -07:00