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:
parent
b4ec4a41c2
commit
d7cda3b002
Notes:
git
2020-12-05 01:43:58 +09:00
1 changed files with 5 additions and 0 deletions
5
.gdbinit
5
.gdbinit
|
@ -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)
|
||||||
|
@ -300,6 +304,7 @@ define rp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
document rp
|
document rp
|
||||||
Print a Ruby's VALUE.
|
Print a Ruby's VALUE.
|
||||||
|
|
Loading…
Reference in a new issue