summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <[email protected]>2025-06-05 12:09:54 -0700
committerJohn Hawthorn <[email protected]>2025-06-11 18:11:36 -0700
commitf91c80836a3f0c0a7ada00d439ad78fdfccd6b29 (patch)
tree0c090745ee37027dfaf83cefb59203e7c8121b0a
parent3a6844a692cab3bd9078ce74c3d96c16c2f3f2fb (diff)
gdbinit: fix printing of T_DATA
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13592
-rw-r--r--.gdbinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gdbinit b/.gdbinit
index a19a9bfc87..f624456d04 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -185,8 +185,8 @@ define rp
print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_DATA
- if ((struct RTypedData *)($arg0))->typed_flag == 1
- printf "%sT_DATA%s(%s): ", $color_type, $color_end, ((struct RTypedData *)($arg0))->type->wrap_struct_name
+ if ((struct RTypedData *)($arg0))->type & 1
+ printf "%sT_DATA%s(%s): ", $color_type, $color_end, ((const rb_data_type_t *)(((struct RTypedData *)($arg0))->type & ~1))->wrap_struct_name
print (struct RTypedData *)($arg0)
else
printf "%sT_DATA%s: ", $color_type, $color_end