]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add DW_AT_go_runtime_type to unsafe.Pointer and fix it for
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Wed, 24 Jan 2024 17:10:47 +0000 (18:10 +0100)
committerCherry Mui <cherryyz@google.com>
Tue, 30 Jan 2024 14:41:56 +0000 (14:41 +0000)
commitb89ad464510e643c23df28bc5c181ad0a16773bf
tree57a1d775fce14015851a209d4d1671d1ae4c612d
parent923ab13f9bb6fccc362d5259e2f456abbeda0c51
cmd/link: add DW_AT_go_runtime_type to unsafe.Pointer and fix it for
uintptr

Adds the DW_AT_go_runtime_type attribute to the debug_info entry for
unsafe.Pointer (which is special) and fixes the debug_info entry of
uintptr so that its DW_AT_go_runtime_type attribute has the proper
class (it was accidentally using DW_CLS_ADDRESS instead of
DW_CLS_GO_TYPEREF)

Change-Id: I52e18593935fbda9bc425e849f4c7f50e9144ad4
Reviewed-on: https://go-review.googlesource.com/c/go/+/558275
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/internal/ld/dwarf.go