print tracebacks for all goroutines, not just the crashing one
R=ken
OCL=13518
CL=13518
diff --git a/src/runtime/proc.c b/src/runtime/proc.c
index ecd4ced..bef497c 100644
--- a/src/runtime/proc.c
+++ b/src/runtime/proc.c
@@ -74,6 +74,21 @@
//prints("\n");
}
+void
+tracebackothers(G *me)
+{
+ G *g;
+
+ for(g = allg; g != nil; g = g->alllink) {
+ if(g == me)
+ continue;
+ prints("\ngoroutine ");
+ sys·printint(g->goid);
+ prints(":\n");
+ traceback(g->sched.PC, g->sched.SP+8, g); // gogo adjusts SP by 8 (not portable!)
+ }
+}
+
G*
select(void)
{