From 4817ab23b31c2c71682c3d54e9da45f53fa7f154 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 12 Sep 2014 14:16:57 +0000 Subject: follow RIncGC * .gdbinit (rp), debug.c (RUBY_FL_PROMOTED): follow RIncGC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .gdbinit | 2 +- debug.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gdbinit b/.gdbinit index 7a79da5dcb..e2a34f3715 100644 --- a/.gdbinit +++ b/.gdbinit @@ -50,7 +50,7 @@ define rp end else set $flags = ((struct RBasic*)($arg0))->flags - if ($flags & RUBY_FL_PROMOTED) + if ($flags & RUBY_FL_PROMOTED) == RUBY_FL_PROMOTED printf "[PROMOTED] " end if ($flags & RUBY_T_MASK) == RUBY_T_NONE diff --git a/debug.c b/debug.c index a8bbb0fd28..15c1ea8b9e 100644 --- a/debug.c +++ b/debug.c @@ -35,6 +35,7 @@ const union { RUBY_ENC_CODERANGE_BROKEN = ENC_CODERANGE_BROKEN, RUBY_FL_PROMOTED0 = FL_PROMOTED0, RUBY_FL_PROMOTED1 = FL_PROMOTED1, + RUBY_FL_PROMOTED = FL_PROMOTED0|FL_PROMOTED1, RUBY_FL_FINALIZE = FL_FINALIZE, RUBY_FL_TAINT = FL_TAINT, RUBY_FL_EXIVAR = FL_EXIVAR, -- cgit v1.2.3