diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-17 16:54:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-17 16:54:25 +0000 |
commit | 8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360 (patch) | |
tree | 99f8a824655109bd2cd36ab0a8502e2fd713101a /libgo/runtime/panic.c | |
parent | 31a84d4a65c9e820fa6f928f8a031f6dfe213c85 (diff) | |
download | gcc-8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360.zip gcc-8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360.tar.gz gcc-8cce07d1ddccd9ffcdcaafaaa4cf13ffa95ec360.tar.bz2 |
runtime: copy rdebug code from Go 1.7 runtime
While we're at it, update the runtime/debug package, and start running
its testsuite by default. I'm not sure why runtime/debug was not
previously updated to 1.7. Doing that led me to fix some minor aspects
of runtime.Stack and the C function runtime/debug.readGCStats.
Reviewed-on: https://go-review.googlesource.com/31251
From-SVN: r241261
Diffstat (limited to 'libgo/runtime/panic.c')
-rw-r--r-- | libgo/runtime/panic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/panic.c b/libgo/runtime/panic.c index cd1ae96..0dd6776 100644 --- a/libgo/runtime/panic.c +++ b/libgo/runtime/panic.c @@ -130,11 +130,11 @@ runtime_dopanic(int32 unused __attribute__ ((unused))) if(g != runtime_m()->g0) { runtime_printf("\n"); runtime_goroutineheader(g); - runtime_traceback(); + runtime_traceback(0); runtime_printcreatedby(g); } else if(t >= 2 || runtime_m()->throwing > 0) { runtime_printf("\nruntime stack:\n"); - runtime_traceback(); + runtime_traceback(0); } if(!didothers) { didothers = true; |