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

ruby-changes:30643

From: nobu <ko1@a...>
Date: Thu, 29 Aug 2013 10:20:30 +0900 (JST)
Subject: [ruby-changes:30643] nobu:r42722 (trunk): .gdbinit: follow classname() change

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

  New Revision: 42722

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

  Log:
    .gdbinit: follow classname() change
    
    * .gdbinit (rb_classname): follow classname() change at r36584, which
      hash second argument now.  reported by 36584 via IRC.

  Modified files:
    trunk/.gdbinit
Index: .gdbinit
===================================================================
--- .gdbinit	(revision 42721)
+++ .gdbinit	(revision 42722)
@@ -722,9 +722,14 @@ document rb_method_entry https://github.com/ruby/ruby/blob/trunk/.gdbinit#L722
 end
 
 define rb_classname
-  call classname($arg0)
-  rb_p $
-  print *(struct RClass*)($arg0)
+  # up to 128bit int
+  set $rb_classname_permanent = "0123456789ABCDEF"
+  set $rb_classname = classname($arg0, $rb_classname_permanent)
+  if $rb_classname != RUBY_Qnil
+    rp $rb_classname
+  else
+    echo anonymous class/module\n
+  end
 end
 
 define rb_ancestors

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

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