diff options
author | John Hawthorn <[email protected]> | 2025-06-05 12:09:54 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2025-06-11 18:11:36 -0700 |
commit | f91c80836a3f0c0a7ada00d439ad78fdfccd6b29 (patch) | |
tree | 0c090745ee37027dfaf83cefb59203e7c8121b0a | |
parent | 3a6844a692cab3bd9078ce74c3d96c16c2f3f2fb (diff) |
gdbinit: fix printing of T_DATA
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13592
-rw-r--r-- | .gdbinit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |