mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
gdbinit: fix printing of T_DATA
This commit is contained in:
parent
3a6844a692
commit
f91c80836a
Notes:
git
2025-06-12 01:11:49 +00:00
1 changed files with 2 additions and 2 deletions
4
.gdbinit
4
.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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue