]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix regression in DWARF inlined routine variable tracking
authorThan McIntosh <thanm@google.com>
Tue, 20 Mar 2018 16:36:37 +0000 (12:36 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 20 Mar 2018 18:56:52 +0000 (18:56 +0000)
commitf45c07e84ad17dcc4d927fb6571f81fc9fd99cdf
tree25aaad52f2497315571f4686568bc42084f76289
parentae10914e67e6e99fec94b3d190558131a24ecd8e
cmd/compile: fix regression in DWARF inlined routine variable tracking

Fix a bug in the code that generates the pre-inlined variable
declaration table used as raw material for emitting DWARF inline
routine records. The fix for issue 23704 altered the recipe for
assigning file/line/col to variables in one part of the compiler, but
didn't update a similar recipe in the code for variable tracking.
Added a new test that should catch problems of a similar nature.

Fixes #24460.

Change-Id: I255c036637f4151aa579c0e21d123fd413724d61
Reviewed-on: https://go-review.googlesource.com/101676
Reviewed-by: Alessandro Arzilli <alessandro.arzilli@gmail.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/gc/dwinl.go
src/cmd/link/internal/ld/dwarf_test.go