]> gitweb.factorcode.org Git - factor.git/commitdiff
Print call stack trace for thread errors
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 4 Sep 2008 01:20:03 +0000 (20:20 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 4 Sep 2008 01:20:03 +0000 (20:20 -0500)
basis/debugger/threads/threads.factor

index 093d231d08061f76e3a8d90c8c788bad1b90b05c..7bb240859e8abf3d2c05e3859b7fe2cc63161479 100644 (file)
@@ -10,14 +10,17 @@ IN: debugger.threads
         dup id>> #
         " (" % dup name>> %
         ", " % dup quot>> unparse-short % ")" %
-    ] "" make swap write-object ":" print nl ;
+    ] "" make swap write-object ":" print ;
 
 M: thread error-in-thread ( error thread -- )
     initial-thread get-global eq? [
         die drop
     ] [
         global [
-            error-thread get-global error-in-thread. print-error flush
+            error-thread get-global error-in-thread. nl
+            print-error nl
+            :c
+            flush
         ] bind
     ] if ;