]> Cypherpunks repositories - gostls13.git/commit
runtime: proper panic tracebacks with mid-stack inlining
authorKeith Randall <khr@google.com>
Mon, 10 Dec 2018 20:49:19 +0000 (12:49 -0800)
committerKeith Randall <khr@golang.org>
Fri, 4 Jan 2019 00:00:24 +0000 (00:00 +0000)
commitaf134b17da99344812344bba65247e45fa22d53b
treee9c3222151fd3d61512eb61d5f1c88ee4f0caac7
parent688667716ede8b133d361db0a1d47eab24ced7f7
runtime: proper panic tracebacks with mid-stack inlining

As a followon to CL 152537, modify the panic-printing traceback
to also handle mid-stack inlining correctly.

Also declare -fm functions (aka method functions) as wrappers, so that
they get elided during traceback. This fixes part 2 of #26839.

Fixes #28640
Fixes #24488
Update #26839

Change-Id: I1c535a9b87a9a1ea699621be1e6526877b696c21
Reviewed-on: https://go-review.googlesource.com/c/153477
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/objabi/funcid.go
src/runtime/traceback.go
test/fixedbugs/issue24488.go [new file with mode: 0644]