1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

.gdbinit: fix nd_tree

* .gdbinit (nd_tree): use rb_str_tmp_new to get rid of
  `__extension__'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-05-17 04:44:12 +00:00
parent a0b6e36609
commit bd4a419d3e

View file

@ -861,7 +861,7 @@ end
define nd_tree define nd_tree
set $buf = (struct RString *)rb_str_buf_new(0) set $buf = (struct RString *)rb_str_buf_new(0)
call dump_node((VALUE)($buf), rb_str_new(0, 0), 0, ($arg0)) call dump_node((VALUE)($buf), rb_str_tmp_new(0), 0, ($arg0))
printf "%s\n", $buf->as.heap.ptr printf "%s\n", $buf->as.heap.ptr
end end