]> Cypherpunks repositories - gostls13.git/commit
runtime: keep FuncForPC from crashing for PCs between functions
authorKeith Randall <khr@google.com>
Mon, 14 Jan 2019 21:47:14 +0000 (13:47 -0800)
committerKeith Randall <khr@golang.org>
Mon, 14 Jan 2019 23:37:39 +0000 (23:37 +0000)
commit462e90259af39af9e23c9d919e002913042c2faa
tree61290a47ac5b2387921c1a0cd05e7f39c4d68c7b
parente1d20ce25acfd8a1c5933453f34db5f589585eaa
runtime: keep FuncForPC from crashing for PCs between functions

Reuse the strict mechanism from FileLine for FuncForPC, so we don't
crash when asking the pcln table about bad pcs.

Fixes #29735

Change-Id: Iaffb32498b8586ecf4eae03823e8aecef841aa68
Reviewed-on: https://go-review.googlesource.com/c/157799
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/symtab.go
test/fixedbugs/issue29735.go [new file with mode: 0644]