]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: use inlining tables to generate accurate tracebacks
authorDavid Lazar <lazard@golang.org>
Fri, 17 Feb 2017 21:08:36 +0000 (16:08 -0500)
committerDavid Lazar <lazard@golang.org>
Fri, 3 Mar 2017 21:29:34 +0000 (21:29 +0000)
commit781fd3998e3c1031379cf5709043a9c0e2987287
treedcd003a933e6ff3e71be214ab6818766d97b328b
parent1c6ef9aeedf951a7a1fa7f510aa42150d3051567
runtime: use inlining tables to generate accurate tracebacks

The code in https://play.golang.org/p/aYQPrTtzoK now produces the
following stack trace:

goroutine 1 [running]:
main.(*point).negate(...)
/tmp/go/main.go:8
main.main()
/tmp/go/main.go:14 +0x23

Previously the stack trace missed the inlined call:

goroutine 1 [running]:
main.main()
/tmp/go/main.go:14 +0x23

Fixes #10152.
Updates #19348.

Change-Id: Ib43c67012f53da0ef1a1e69bcafb65b57d9cecb2
Reviewed-on: https://go-review.googlesource.com/37233
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/crash_test.go
src/runtime/symtab.go
src/runtime/traceback.go