[svn:parrot] r47130 - trunk/compilers/pct/src/PCT

moritz at svn.parrot.org moritz at svn.parrot.org
Sun May 30 08:09:03 UTC 2010


Author: moritz
Date: Sun May 30 08:09:03 2010
New Revision: 47130
URL: https://trac.parrot.org/parrot/changeset/47130

Log:
[PCT] print backtraces to STDERR by default, not STDOUT

Modified:
   trunk/compilers/pct/src/PCT/HLLCompiler.pir

Modified: trunk/compilers/pct/src/PCT/HLLCompiler.pir
==============================================================================
--- trunk/compilers/pct/src/PCT/HLLCompiler.pir	Sun May 30 07:36:21 2010	(r47129)
+++ trunk/compilers/pct/src/PCT/HLLCompiler.pir	Sun May 30 08:09:03 2010	(r47130)
@@ -804,6 +804,9 @@
 
 =cut
 
+# for printerr
+.loadlib 'io_ops'
+
 .sub 'command_line' :method
     .param pmc args
     .param pmc adverbs         :slurpy :named
@@ -918,7 +921,7 @@
     .get_results ($P0)
     pop_eh
     $S0 = self.'backtrace'($P0)
-    print $S0
+    printerr $S0
     exit 1
 .end
 


More information about the parrot-commits mailing list