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

ruby-changes:40435

From: nobu <ko1@a...>
Date: Tue, 10 Nov 2015 12:36:14 +0900 (JST)
Subject: [ruby-changes:40435] nobu:r52516 (trunk): rbi

nobu	2015-11-10 12:36:08 +0900 (Tue, 10 Nov 2015)

  New Revision: 52516

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

  Log:
    rbi
    
    .gdbinit (rbi): show the content of LINK_ELEMENT*.

  Modified files:
    trunk/.gdbinit
Index: .gdbinit
===================================================================
--- .gdbinit	(revision 52515)
+++ .gdbinit	(revision 52516)
@@ -949,3 +949,18 @@ define SDR https://github.com/ruby/ruby/blob/trunk/.gdbinit#L949
   call rb_vmdebug_stack_dump_raw_current()
 end
 
+define rbi
+  if ((LINK_ELEMENT*)$arg0)->type == ISEQ_ELEMENT_LABEL
+    p *(LABEL*)$arg0
+  else
+  if ((LINK_ELEMENT*)$arg0)->type == ISEQ_ELEMENT_INSN
+    p *(INSN*)$arg0
+  else
+  if ((LINK_ELEMENT*)$arg0)->type == ISEQ_ELEMENT_ADJUST
+    p *(ADJUST*)$arg0
+  else
+    print *$arg0
+  end
+  end
+  end
+end

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

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