[macruby-changes] [1569] MacRuby/branches/experimental/HACKING.rdoc

source_changes at macosforge.org source_changes at macosforge.org
Tue May 12 02:18:50 PDT 2009


Revision: 1569
          http://trac.macosforge.org/projects/ruby/changeset/1569
Author:   lsansonetti at apple.com
Date:     2009-05-12 02:18:50 -0700 (Tue, 12 May 2009)
Log Message:
-----------
more gdb tips

Modified Paths:
--------------
    MacRuby/branches/experimental/HACKING.rdoc

Modified: MacRuby/branches/experimental/HACKING.rdoc
===================================================================
--- MacRuby/branches/experimental/HACKING.rdoc	2009-05-12 09:18:36 UTC (rev 1568)
+++ MacRuby/branches/experimental/HACKING.rdoc	2009-05-12 09:18:50 UTC (rev 1569)
@@ -106,3 +106,12 @@
 === GDB tricks
 
 * Break on rb_exc_raise to intercept pure Ruby exceptions.
+
+* To dump the LLVM IR:
+  (gdb) p RoxorCompiler::shared->module->dump()
+
+* To print the list of current active blocks:
+  (gdb) p (char *)RoxorVM::current->debug_blocks()
+
+* To print the list of current active exceptions:
+  (gdb) p (char *)RoxorVM::current->debug_exceptions()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090512/29f89231/attachment.html>


More information about the macruby-changes mailing list