]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: link to runtime types from DWARF
authorHeschi Kreinick <heschi@google.com>
Thu, 12 Apr 2018 21:07:14 +0000 (17:07 -0400)
committerHeschi Kreinick <heschi@google.com>
Fri, 20 Apr 2018 19:51:37 +0000 (19:51 +0000)
commit393f84a125bf42863e8698748cbbca893771c925
tree26aaadc8f7808795c224052f040aed641748fa2c
parent568d6f983172706d2f5f7f66024b7b7a544ada53
cmd/ld: link to runtime types from DWARF

Add a new DWARF attribute, DW_AT_go_runtime_type, that gives the offset
of the runtime type structure, if any, for a DWARF type. This should
allow debuggers to decode interface content without having to do awkward
name matching.

Fixes #24814

Change-Id: Ic7a66524d2be484154c584afa9697111618efea4
Reviewed-on: https://go-review.googlesource.com/106775
Reviewed-by: Alessandro Arzilli <alessandro.arzilli@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/dwarf/dwarf_defs.go
src/cmd/internal/obj/objfile.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/dwarf_test.go