]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: include non-decomposed vars for -dwarflocationlists
authorThan McIntosh <thanm@google.com>
Mon, 23 Oct 2017 15:41:47 +0000 (11:41 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 23 Oct 2017 19:19:25 +0000 (19:19 +0000)
commit87f83eac7ffd54cc4fe56e4d4f22680ffdb071a1
treec57c6e3304e2a91b6d5bfd9d24c1129ef3f12781
parent0316d6618c7a986727c9e99fb7aab7c7a4e92d71
cmd/compile: include non-decomposed vars for -dwarflocationlists

When enhanced DWARF location list generation is enabled (via internal
option -dwarflocationlists), variable entries were missing for "large"
(non-decomposable) locals and formals. From the debugging perspective,
this makes it appear that the variable doesn't exist, which is
probably not what we want. This change insures that a formal/local DIE
is created for these vars (with correct type, line, etc) but with a
conservative ("no info") location.

Change-Id: I10b2e9a51a60c7b4c748e987cdec5f2d8b2837d5
Reviewed-on: https://go-review.googlesource.com/72630
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