1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add T_MOVED to rp command of GDB

This commit is contained in:
Peter Zhu 2020-12-04 10:49:33 -05:00 committed by Aaron Patterson
parent b4ec4a41c2
commit d7cda3b002
Notes: git 2020-12-05 01:43:58 +09:00

View file

@ -264,6 +264,10 @@ define rp
if ($flags & RUBY_T_MASK) == RUBY_T_ZOMBIE if ($flags & RUBY_T_MASK) == RUBY_T_ZOMBIE
printf "%sT_ZOMBIE%s: ", $color_type, $color_end printf "%sT_ZOMBIE%s: ", $color_type, $color_end
print (struct RData *)($arg0) print (struct RData *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_MOVED
printf "%sT_MOVED%s: ", $color_type, $color_end
print *(struct RMoved *)$arg0
else else
printf "%sunknown%s: ", $color_type, $color_end printf "%sunknown%s: ", $color_type, $color_end
print (struct RBasic *)($arg0) print (struct RBasic *)($arg0)
@ -301,6 +305,7 @@ define rp
end end
end end
end end
end
document rp document rp
Print a Ruby's VALUE. Print a Ruby's VALUE.
end end