• Than McIntosh's avatar
    cmd/compile: fix DWARF type symbol buglet · 9372166f
    Than McIntosh authored
    The code that generates the list of DWARF variables for a function
    (params and autos) will emit a "no-location" entry in the DWARF for a
    user var that appears in the original pre-optimization version of the
    function but is no longer around when optimization is complete. The
    intent is that if a GDB user types "print foo" (where foo has been
    optimized out), the response will be "<optimized out>" as opposed to
    "there is no such variable 'foo'). This change fixes said code to
    include vars on the autom list for the function, to insure that the
    type symbol for the variable makes it to the linker.
    
    Fixes #22941.
    
    Change-Id: Id29f1f39d68fbb798602dfd6728603040624fc41
    Reviewed-on: https://go-review.googlesource.com/81415
    Run-TryBot: Than McIntosh <thanm@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    9372166f
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...