]> Cypherpunks repositories - gostls13.git/commit
compile,link: export package name in debug_info
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Mon, 25 Feb 2019 12:56:18 +0000 (13:56 +0100)
committerHeschi Kreinick <heschi@google.com>
Tue, 2 Apr 2019 17:40:36 +0000 (17:40 +0000)
commite29f74efb90b8a7f20fd4ffce4038c824c173f50
tree66d7c7da8ed8696d6dfad2063b87fd99dcb0507c
parentabefcac10a635c5c6afdeada810f4663e6cb6f17
compile,link: export package name in debug_info

Add a new custom attribute to compile units containing the package name
of the package (i.e. the name after the 'package' keyword), so that
debuggers can know it when it's different from the last segment
of the package path.

Change-Id: Ieadaab6f47091aabf2f4dc42c8524452eaa6715b
Reviewed-on: https://go-review.googlesource.com/c/go/+/163677
Run-TryBot: Alessandro Arzilli <alessandro.arzilli@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/gc/main.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/dwarf_test.go