mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
.gdbinit: suppress gdb message [ci skip]
* .gdbinit (rp): check number of instance variables to get rid of "Invalid number 0 of repetitions." message at an empty object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c85cdc12a4
commit
655aa318db
1 changed files with 3 additions and 1 deletions
4
.gdbinit
4
.gdbinit
|
@ -68,7 +68,9 @@ define rp
|
|||
print/x *((VALUE*)((struct RObject*)($arg0))->as.ary) @ (ROBJECT_EMBED_LEN_MAX+0)
|
||||
else
|
||||
print (((struct RObject *)($arg0))->as.heap)
|
||||
print/x *(((struct RObject*)($arg0))->as.heap.ivptr) @ (((struct RObject*)($arg0))->as.heap.numiv)
|
||||
if (((struct RObject*)($arg0))->as.heap.numiv) > 0
|
||||
print/x *(((struct RObject*)($arg0))->as.heap.ivptr) @ (((struct RObject*)($arg0))->as.heap.numiv)
|
||||
end
|
||||
end
|
||||
else
|
||||
if ($flags & RUBY_T_MASK) == RUBY_T_CLASS
|
||||
|
|
Loading…
Reference in a new issue