[前][次][番号順一覧][スレッド一覧]

ruby-changes:63911

From: Peter <ko1@a...>
Date: Sat, 5 Dec 2020 01:43:52 +0900 (JST)
Subject: [ruby-changes:63911] d7cda3b002 (master): Add T_MOVED to rp command of GDB

https://git.ruby-lang.org/ruby.git/commit/?id=d7cda3b002

From d7cda3b0024d82d9c921382b7095a31c866fa857 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Fri, 4 Dec 2020 10:49:33 -0500
Subject: Add T_MOVED to rp command of GDB


diff --git a/.gdbinit b/.gdbinit
index 714d7be..4938095 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -265,6 +265,10 @@ define rp https://github.com/ruby/ruby/blob/trunk/.gdbinit#L265
     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 https://github.com/ruby/ruby/blob/trunk/.gdbinit#L304
   end
   end
   end
+  end
 end
 document rp
   Print a Ruby's VALUE.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]