]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: skip logical frames in runtime.Caller
authorDavid Lazar <lazard@golang.org>
Mon, 10 Apr 2017 18:33:07 +0000 (14:33 -0400)
committerDavid Lazar <lazard@golang.org>
Tue, 18 Apr 2017 19:56:30 +0000 (19:56 +0000)
commit0ea120a70c03c3c57778d6863188fdfee87cb0f9
tree5128910473c16e0e068e81cc3dfd322219ba2ce4
parent5e15497b5682acfe5c761bc116c6f157efcc8042
runtime: skip logical frames in runtime.Caller

This rewrites runtime.Caller in terms of stackExpander, which already
handles inlined frames and partially skipped frames. This also has the
effect of making runtime.Caller understand cgo frames if there is a cgo
symbolizer.

Updates #19348.

Change-Id: Icdf4df921aab5aa394d4d92e3becc4dd169c9a6e
Reviewed-on: https://go-review.googlesource.com/40270
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/extern.go
test/inline_caller.go [new file with mode: 0644]