[前][次][番号順一覧][スレッド一覧]

ruby-changes:30644

From: nobu <ko1@a...>
Date: Thu, 29 Aug 2013 10:20:34 +0900 (JST)
Subject: [ruby-changes:30644] nobu:r42723 (trunk): .gdbinit: improve for displaying class/module

nobu	2013-08-29 10:20:28 +0900 (Thu, 29 Aug 2013)

  New Revision: 42723

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42723

  Log:
    .gdbinit: improve for displaying class/module
    
    * .gdbinit (rp_class): show class name, if possible.
    
    * .gdbinit (rb_ancestors): call rp_class directly.

  Modified files:
    trunk/.gdbinit
Index: .gdbinit
===================================================================
--- .gdbinit	(revision 42722)
+++ .gdbinit	(revision 42723)
@@ -368,6 +368,7 @@ define rp_class https://github.com/ruby/ruby/blob/trunk/.gdbinit#L368
     printf " -> %p", ((struct RClass *)($arg0))->ptr.origin
   end
   printf "\n"
+  rb_classname $arg0
   print *(struct RClass *)($arg0)
   print *((struct RClass *)($arg0))->ptr
 end
@@ -735,7 +736,7 @@ end https://github.com/ruby/ruby/blob/trunk/.gdbinit#L736
 define rb_ancestors
   set $rb_ancestors_module = $arg0
   while $rb_ancestors_module
-    rp $rb_ancestors_module
+    rp_class $rb_ancestors_module
     set $rb_ancestors_module = ((struct RClass *)($rb_ancestors_module))->ptr.super
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]