]> Cypherpunks repositories - gostls13.git/commit
runtime: use GOTRACEBACK to decide whether to show runtime frames
authorRuss Cox <rsc@golang.org>
Mon, 6 Feb 2012 16:24:14 +0000 (11:24 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 6 Feb 2012 16:24:14 +0000 (11:24 -0500)
commit48bd13911de978effd30402253de523b8eb4bb11
treed976fc9210b2a29dc587f7d8450f091268bfb2c4
parent0b9f0908610bc1d3938a0cb6d33dbfb4c1e9c954
runtime: use GOTRACEBACK to decide whether to show runtime frames

Right now, GOTRACEBACK=0 means do not show any stack traces.
Unset means the default behavior (declutter by hiding runtime routines).

This CL makes GOTRACEBACK=2 mean include the runtime routines.
It avoids having to recompile the runtime when you want to see
the runtime in the tracebacks.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5633050
src/pkg/runtime/symtab.c