From 45143aeca47da4595367e9ab0f1d0194f7847a96 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 18 Sep 2014 23:25:11 +0200 Subject: [PATCH] runtime: fix handling of GOTRACEBACK Since CL 130990043, the GOTRACEBACK variable is only used when the GODEBUG variable is set. This change restores the original behavior. LGTM=rsc R=golang-codereviews, aram, gobot, r, rsc CC=golang-codereviews https://golang.org/cl/132520043 --- src/runtime/runtime.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index ae754dc5cd..aa8dd8f7a0 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -287,18 +287,18 @@ runtime·parsedebugvars(void) intgo i, n; p = runtime·getenv("GODEBUG"); - if(p == nil) - return; - for(;;) { - for(i=0; i