1
0
mirror of https://github.com/golang/go synced 2024-11-14 20:20:30 -07:00
go/src/cmd
Alessandro Arzilli c8b889cc48 cmd/compile: output DWARF lexical blocks for local variables
Change compiler and linker to emit DWARF lexical blocks in debug_info.
Version of debug_info is updated from DWARF v.2 to DWARF v.3 since version 2
does not allow lexical blocks with discontinuous ranges.

Second attempt at https://go-review.googlesource.com/#/c/29591/

Remaining open problems:
- scope information is removed from inlined functions
- variables in debug_info do not have DW_AT_start_scope attributes so a
variable will shadow other variables with the same name as soon as its
containing scope begins, before its declaration.

Updates golang/go#12899, golang/go#6913

Change-Id: I0e260a45b564d14a87b88974eb16c5387cb410a5
Reviewed-on: https://go-review.googlesource.com/36879
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-04-07 18:15:06 +00:00
..
addr2line cmd/go: build test binaries with -s in addition to -w 2017-03-29 17:18:16 +00:00
api
asm cmd/internal/obj: eagerly initialize assemblers 2017-04-07 16:57:03 +00:00
cgo
compile cmd/compile: output DWARF lexical blocks for local variables 2017-04-07 18:15:06 +00:00
cover
dist cmd/compile: factor out Pkg, Sym, and Type into package types 2017-04-07 03:04:00 +00:00
doc cmd/doc: implement "go doc struct.field" 2017-03-22 05:37:50 +00:00
fix cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
go cmd/go: add test for test -race -i behavior 2017-04-05 18:46:16 +00:00
gofmt cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
internal cmd/compile: output DWARF lexical blocks for local variables 2017-04-07 18:15:06 +00:00
link cmd/compile: output DWARF lexical blocks for local variables 2017-04-07 18:15:06 +00:00
nm
objdump cmd/objdump: print Go code alongside assembly 2017-04-05 06:20:40 +00:00
pack
pprof cmd/pprof: use proxy from environment 2017-03-19 05:45:51 +00:00
trace
vendor
vet cmd/vet/all: add countBytes exemption to amd64 whitelist 2017-04-07 15:49:22 +00:00