diff options
author | Peter Zhu <peter@peterzhu.ca> | 2020-12-04 10:49:33 -0500 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2020-12-04 08:43:32 -0800 |
commit | d7cda3b0024d82d9c921382b7095a31c866fa857 (patch) | |
tree | 97dd5ee9580ed1b773f4f541d1e83c1e4f25e5cf /.gdbinit | |
parent | b4ec4a41c24105efbb43f9b70ca7f36d22f98294 (diff) |
Add T_MOVED to rp command of GDB
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3846
Diffstat (limited to '.gdbinit')
-rw-r--r-- | .gdbinit | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -265,6 +265,10 @@ define rp 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) end @@ -300,6 +304,7 @@ define rp end end end + end end document rp Print a Ruby's VALUE. |