<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,10 @@ define rps
 p __show_simple__($arg0)
 end
 
+define rph
+p __show_subtend__($arg0)
+end
+
 define validate
 p rubinius::VM::current_state()-&gt;om-&gt;validate_object($arg0)
 end</diff>
      <filename>.gdbinit</filename>
    </modified>
    <modified>
      <diff>@@ -1388,4 +1388,15 @@ extern &quot;C&quot; {
 
     return rb_funcall(block_handle, rb_intern(&quot;call&quot;), 1, argument_handle);
   }
+
+  /* For debugging. */
+  void __show_subtend__(VALUE obj_handle) {
+    NativeMethodEnvironment* env = NativeMethodEnvironment::get();
+
+    Object* object = env-&gt;get_object(obj_handle);
+    if(!object) {
+      std::cout &lt;&lt; &quot;the object is NULL, check if an exception was raised.&quot; &lt;&lt; std::endl;
+    }
+    object-&gt;show(env-&gt;state());
+  }
 }</diff>
      <filename>vm/subtend/ruby.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a16322af639204aa8eb3502c1f53e5acebbbe07</id>
    </parent>
  </parents>
  <author>
    <name>Brian Ford</name>
    <email>bford@engineyard.com</email>
  </author>
  <url>http://github.com/evanphx/rubinius/commit/f51ae8a38507f5c3d49e7a33a6ea5cd634e5236f</url>
  <id>f51ae8a38507f5c3d49e7a33a6ea5cd634e5236f</id>
  <committed-date>2009-03-20T12:13:33-07:00</committed-date>
  <authored-date>2009-03-20T12:13:33-07:00</authored-date>
  <message>Added gdb rph to print object given its subtend handle.</message>
  <tree>50ebb6ba1f6c6feeb6d3cd776433d57d046519fe</tree>
  <committer>
    <name>Brian Ford</name>
    <email>bford@engineyard.com</email>
  </committer>
</commit>
