aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/dwarf
diff options
context:
space:
mode:
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>2024-01-24 18:10:47 +0100
committerCherry Mui <cherryyz@google.com>2024-01-30 14:41:56 +0000
commitb89ad464510e643c23df28bc5c181ad0a16773bf (patch)
tree57a1d775fce14015851a209d4d1671d1ae4c612d /src/cmd/internal/dwarf
parent923ab13f9bb6fccc362d5259e2f456abbeda0c51 (diff)
downloadgo-b89ad464510e643c23df28bc5c181ad0a16773bf.tar.xz
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>
Diffstat (limited to 'src/cmd/internal/dwarf')
-rw-r--r--src/cmd/internal/dwarf/dwarf.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/internal/dwarf/dwarf.go b/src/cmd/internal/dwarf/dwarf.go
index 3e87e590fb..d10b3731df 100644
--- a/src/cmd/internal/dwarf/dwarf.go
+++ b/src/cmd/internal/dwarf/dwarf.go
@@ -834,6 +834,7 @@ var abbrevs = [DW_NABRV]dwAbbrev{
DW_CHILDREN_no,
[]dwAttrForm{
{DW_AT_name, DW_FORM_string},
+ {DW_AT_go_runtime_type, DW_FORM_addr},
},
},