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

ruby-changes:70768

From: Peter <ko1@a...>
Date: Fri, 7 Jan 2022 04:33:47 +0900 (JST)
Subject: [ruby-changes:70768] ee4784c06e (master): Update lldb_cruby.py for VWA strings

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

From ee4784c06e991c605df31ab520e6b09c0ebc1e9e Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Thu, 6 Jan 2022 09:03:45 -0500
Subject: Update lldb_cruby.py for VWA strings

---
 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 53e42b711c3..c6c18613d80 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -191,8 +191,7 @@ def string2cstr(rstring): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L191
         clen = int(rstring.GetValueForExpressionPath(".as.heap.len").value, 0)
     else:
         cptr = int(rstring.GetValueForExpressionPath(".as.embed.ary").location, 0)
-        # clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0)
-        clen = (flags & RSTRING_EMBED_LEN_MASK) >> RSTRING_EMBED_LEN_SHIFT
+        clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0)
     return cptr, clen
 
 def output_string(debugger, result, rstring):
-- 
cgit v1.2.1


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

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