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

.gdbinit: RArray in history [ci skip]

* .gdbinit (rp): put the contents of RArray in value history, for
  later use.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-03-18 10:19:52 +00:00
parent a5330fa9ea
commit c85cdc12a4

View file

@ -124,7 +124,7 @@ define rp
if ($len == 0)
printf "{(empty)} "
else
output/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
print/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
printf " "
end
else
@ -140,7 +140,7 @@ define rp
if ($len == 0)
printf "{(empty)} "
else
output/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
print/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
printf " "
end
end