1
0
mirror of https://github.com/golang/go synced 2024-09-29 22:34:33 -06:00
go/misc/cgo
Ian Lance Taylor 6d43587053 cmd/cgo: preserve type information across loadDWARF loop
CL 122575 and its successors introduced a loop calling loadDWARF,
whereas before we only called it once. Pass a single typeConv to each
call, rather than creating a new one in loadDWARF itself. Change the
maps from dwarf.Type to use string keys rather than dwarf.Type keys,
since when the DWARF is reloaded the dwarf.Type pointers will be
different. These changes permit typeConv.Type to return a consistent
value for a given DWARF type, avoiding spurious type conversion errors
due to typedefs loaded after the first loop iteration.

Fixes #27340

Change-Id: Ic33467bbfca4c54e95909621b35ba2a58216d96e
Reviewed-on: https://go-review.googlesource.com/c/152762
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2018-12-11 03:29:27 +00:00
..
errors cmd/cgo: reject names that are likely to be mangled C name 2018-12-05 14:12:14 +00:00
fortran *.bash: always use the same string equality operator 2017-03-14 21:46:31 +00:00
gmp
life test: remove rundircmpout and cmpout actions 2018-05-31 17:36:45 +00:00
nocgo
stdio test: remove rundircmpout and cmpout actions 2018-05-31 17:36:45 +00:00
test cmd/cgo: preserve type information across loadDWARF loop 2018-12-11 03:29:27 +00:00
testasan
testcarchive misc/cgo/testcarchive: make the tests work when using gccgo 2018-08-21 15:03:10 +00:00
testcshared misc/cgo/testcshared: skip TestGo2C2Go on Android 2018-12-03 23:32:59 +00:00
testgodefs cmd/cgo: don't resolve typedefs in -godefs mode 2018-07-27 16:46:42 +00:00
testplugin all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00
testsanitizers misc/cgo/testsanitizers: gofmt 2018-11-16 13:54:47 +00:00
testshared cmd/compile: emit a symbol for a method expression when using -dynlink 2018-12-11 03:20:37 +00:00
testsigfwd
testso
testsovar
testtls