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:
parent
a5330fa9ea
commit
c85cdc12a4
1 changed files with 2 additions and 2 deletions
4
.gdbinit
4
.gdbinit
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue