[macruby-changes] [2515] MacRuby/trunk/HACKING.rdoc

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 8 19:23:08 PDT 2009


Revision: 2515
          http://trac.macosforge.org/projects/ruby/changeset/2515
Author:   lsansonetti at apple.com
Date:     2009-09-08 19:23:08 -0700 (Tue, 08 Sep 2009)
Log Message:
-----------
adding a tip

Modified Paths:
--------------
    MacRuby/trunk/HACKING.rdoc

Modified: MacRuby/trunk/HACKING.rdoc
===================================================================
--- MacRuby/trunk/HACKING.rdoc	2009-09-08 18:48:55 UTC (rev 2514)
+++ MacRuby/trunk/HACKING.rdoc	2009-09-09 02:23:08 UTC (rev 2515)
@@ -111,7 +111,12 @@
 
 ==== GDB tricks
 
-* Break on rb_exc_raise to intercept pure Ruby exceptions.
+* Break on rb_exc_raise to intercept pure Ruby exceptions. You can use a
+  conditional break point in case you only want to break if a specific
+  exception class is being raised:
+  (gdb) b rb_exc_raise
+  Breakpoint 1 at 0x20c49ba5453254: file eval.c, line 312.
+  (gdb) cond 1 *(void **)mesg == rb_eArgError
 
 * To dump the LLVM IR:
   (gdb) p RoxorCompiler::shared->module->dump()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090908/0e1bda84/attachment.html>


More information about the macruby-changes mailing list