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

ruby-changes:69483

From: Nobuyoshi <ko1@a...>
Date: Thu, 28 Oct 2021 09:03:19 +0900 (JST)
Subject: [ruby-changes:69483] b74bf8dd88 (master): Follow up the RString change [ci skip]

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

From b74bf8dd8800e4d47923b99cf48e18c70ed59dbe Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 28 Oct 2021 08:58:59 +0900
Subject: Follow up the RString change [ci skip]

Since 46b66eb9e8e6de2d5750591e532310e8f8599d90, already `ary` has
been enclosed in `embed`.
---
 misc/lldb_cruby.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index b6ac231ceec..53e42b711c3 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -190,9 +190,8 @@ def string2cstr(rstring): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L190
         cptr = int(rstring.GetValueForExpressionPath(".as.heap.ptr").value, 0)
         clen = int(rstring.GetValueForExpressionPath(".as.heap.len").value, 0)
     else:
-        # cptr = int(rstring.GetValueForExpressionPath(".as.embed.ary").location, 0)
+        cptr = int(rstring.GetValueForExpressionPath(".as.embed.ary").location, 0)
         # clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0)
-        cptr = int(rstring.GetValueForExpressionPath(".as.ary").location, 0)
         clen = (flags & RSTRING_EMBED_LEN_MASK) >> RSTRING_EMBED_LEN_SHIFT
     return cptr, clen
 
-- 
cgit v1.2.1


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

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