Skip to content

Commit

Permalink
Add T_MOVED to rp command of GDB
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 authored and tenderlove committed Dec 4, 2020
1 parent b4ec4a4 commit d7cda3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gdbinit
Expand Up @@ -264,6 +264,10 @@ define rp
if ($flags & RUBY_T_MASK) == RUBY_T_ZOMBIE
printf "%sT_ZOMBIE%s: ", $color_type, $color_end
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
printf "%sunknown%s: ", $color_type, $color_end
print (struct RBasic *)($arg0)
Expand Down Expand Up @@ -300,6 +304,7 @@ define rp
end
end
end
end
end
document rp
Print a Ruby's VALUE.
Expand Down

0 comments on commit d7cda3b

Please sign in to comment.