]> Cypherpunks repositories - gostls13.git/commit
compiler: honor //line directives in DWARF variable file/line attrs
authorThan McIntosh <thanm@google.com>
Tue, 6 Feb 2018 14:36:13 +0000 (09:36 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 15 Feb 2018 20:36:15 +0000 (20:36 +0000)
commitb3cb740be5f9901f2a9051f4f6c584cf729f6af7
treea1776db443e1c009edaa815823cf62bcd345816e
parent1ae22d8cfe3e5a22370d51fb75fe78ab99d8a269
compiler: honor //line directives in DWARF variable file/line attrs

During DWARF debug generation, the DW_AT_decl_line / DW_AT_decl_file
attributes for variable DIEs were being computed without taking into
account the possibility of "//line" directives. Fix things up to use
the correct src.Pos methods to pick up this info.

Fixes #23704.

Change-Id: I88c21a0e0a9602392be229252d856a6d665868e2
Reviewed-on: https://go-review.googlesource.com/92255
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/gc/pgen.go
src/cmd/link/internal/ld/dwarf_test.go