cmd/compile: DWARF info for pointer types in go binaries don't have DW_AT_GOKIND
populated correctly.
#64231
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compiled a simple test program that has functions which take various parameter types. I then used
llvm-dwarfdump ./simple-binary
to read the DWARF output.Some type's entries, such as
*uint8
have the correct Go kind information:While others do not:
What did you expect to see?
The field with attribute
DW_AT_GO_kind
for every pointer type entry in DWARF to be populated with0x16
(reflect.Pointer).What did you see instead?
The field with attribute
DW_AT_GO_kind
for some pointer type entries in DWARF with the value0
.The text was updated successfully, but these errors were encountered: