From 3835e01d97c26f110d9842f3279ec24bd3f15add Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 28 Jul 2008 11:29:41 -0700 Subject: print tracebacks for all goroutines, not just the crashing one R=ken OCL=13518 CL=13518 --- src/runtime/runtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runtime/runtime.h') diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 9ee7534926..26eb1af2ac 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -106,7 +106,7 @@ struct G byte* stackbase; // must not move byte* stack0; // first stack segment Gobuf sched; - G* alllink; // on allq + G* alllink; // on allg void* param; // passed parameter on wakeup int16 status; int32 goid; @@ -189,6 +189,7 @@ void* mal(uint32); uint32 cmpstring(string, string); void initsig(void); void traceback(uint8 *pc, uint8 *sp, G* gp); +void tracebackothers(G*); int32 open(byte*, int32, ...); int32 read(int32, void*, int32); int32 write(int32, void*, int32); -- cgit v1.3-5-g9baa