diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-12 17:35:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-12 17:35:25 +0000 |
commit | cd55ddb03cfaa81b3c6930d7132389fadf02b451 (patch) | |
tree | e537d49967173c1285c12b0911fc7defa9c767c6 /.gdbinit | |
parent | e9c5e7625cfbeacf18c2dfd6ac9d9b3049beadac (diff) | |
download | bundler-cd55ddb03cfaa81b3c6930d7132389fadf02b451.tar.gz |
.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
Diffstat (limited to '.gdbinit')
-rw-r--r-- | .gdbinit | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |