mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
.gdbinit: nd_tree
* .gdbinit (nd_tree): dump node tree by dump_node(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e9c5e7625c
commit
cd55ddb03c
1 changed files with 6 additions and 0 deletions
6
.gdbinit
6
.gdbinit
|
@ -738,6 +738,12 @@ define nd_tval
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue