]> Cypherpunks repositories - gostls13.git/commit
debug/gosym: add hook to disable recovers
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 28 Sep 2021 20:13:49 +0000 (13:13 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 29 Sep 2021 16:45:42 +0000 (16:45 +0000)
commit2fad7dbb893737a01c7ab4f382720a2b0440b736
tree073c99498db0f92bab83943b6e7c0e44b0adb0e1
parentc2de759581aef5d14fd07b843caf76db3c8a115b
debug/gosym: add hook to disable recovers

debug/gosym assumes throughout that bogus input means a malformed file.
That's generally true, but not when you're changing the package.
In that case, the panic usually indicates a newly introduced bug,
and seeing the panic is really useful.

Add a manually-enabled way to make panics panic.

Change-Id: I07af6c7b982c4cf61180db29f07aa63576ba7837
Reviewed-on: https://go-review.googlesource.com/c/go/+/352949
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/debug/gosym/pclntab.go