ruby-changes:35810
From: nobu <ko1@a...>
Date: Mon, 13 Oct 2014 02:35:42 +0900 (JST)
Subject: [ruby-changes:35810] nobu:r47892 (trunk): .gdbinit: nd_tree
nobu 2014-10-13 02:35:25 +0900 (Mon, 13 Oct 2014) New Revision: 47892 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47892 Log: .gdbinit: nd_tree * .gdbinit (nd_tree): dump node tree by dump_node(). Modified files: trunk/.gdbinit Index: .gdbinit =================================================================== --- .gdbinit (revision 47891) +++ .gdbinit (revision 47892) @@ -738,6 +738,12 @@ define nd_tval https://github.com/ruby/ruby/blob/trunk/.gdbinit#L738 rp ($arg0).u2.value end +define nd_tree + set $buf = (struct RString *)rb_str_buf_new(0) + call dump_node((VALUE)($buf), rb_str_new(0, 0), 0, ($arg0)) + printf "%s\n", $buf->as.heap.ptr +end + define rb_p call rb_p($arg0) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/