aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/proc.c')
-rw-r--r--src/runtime/proc.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/runtime/proc.c b/src/runtime/proc.c
index ecd4cedab0..bef497c9a7 100644
--- a/src/runtime/proc.c
+++ b/src/runtime/proc.c
@@ -74,6 +74,21 @@ sys·newproc(int32 siz, byte* fn, byte* arg0)
//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)
{