Fix ivar dump for RVARGC in .gdbinit
It was crashing with: No symbol "ROBJECT_EMBED_LEN_MAX" in current context.
This commit is contained in:
parent
fbc6661a72
commit
f500df097f
2
.gdbinit
2
.gdbinit
@ -67,7 +67,7 @@ define rp
|
|||||||
printf "%sT_OBJECT%s: ", $color_type, $color_end
|
printf "%sT_OBJECT%s: ", $color_type, $color_end
|
||||||
print ((struct RObject *)($arg0))->basic
|
print ((struct RObject *)($arg0))->basic
|
||||||
if ($flags & ROBJECT_EMBED)
|
if ($flags & ROBJECT_EMBED)
|
||||||
print/x *((VALUE*)((struct RObject*)($arg0))->as.ary) @ (ROBJECT_EMBED_LEN_MAX+0)
|
print/x *((VALUE*)((struct RObject*)($arg0))->as.ary) @ (rb_shape_get_shape($arg0)->capacity)
|
||||||
else
|
else
|
||||||
print (((struct RObject *)($arg0))->as.heap)
|
print (((struct RObject *)($arg0))->as.heap)
|
||||||
if (((struct RObject*)($arg0))->as.heap.numiv) > 0
|
if (((struct RObject*)($arg0))->as.heap.numiv) > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user