aboutsummaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-30 23:58:07 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-30 23:58:09 -0700
commitf500df097f7f191b54d82dd6cace7ede718ce624 (patch)
treeae82698f83cde748929be0c406205d804c8f4215 /.gdbinit
parentfbc6661a725f0aa594b55bbce1d861928a3373fc (diff)
downloadruby-f500df097f7f191b54d82dd6cace7ede718ce624.tar.gz
Fix ivar dump for RVARGC in .gdbinit
It was crashing with: No symbol "ROBJECT_EMBED_LEN_MAX" in current context.
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index 7657d240c5..074eeef4f1 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -67,7 +67,7 @@ define rp
printf "%sT_OBJECT%s: ", $color_type, $color_end
print ((struct RObject *)($arg0))->basic
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
print (((struct RObject *)($arg0))->as.heap)
if (((struct RObject*)($arg0))->as.heap.numiv) > 0