summaryrefslogtreecommitdiff
path: root/misc/lldb_rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-11 17:31:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-11 17:31:49 +0900
commitdcdc2cbd8ed581f49e2ada72f695ace5643d0852 (patch)
tree4d2f7d2491853b2ea385cb0ff065bb00e28a69c2 /misc/lldb_rb
parent52131d84f28b197f4ccb4abd80ab71d61cf4143c (diff)
`RString::len` was moved at 7577c101ed6452de3e72fadb43db595946acc701
[ci skip]
Diffstat (limited to 'misc/lldb_rb')
-rw-r--r--misc/lldb_rb/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/lldb_rb/utils.py b/misc/lldb_rb/utils.py
index b6cfe2fe77..bd2c0330b8 100644
--- a/misc/lldb_rb/utils.py
+++ b/misc/lldb_rb/utils.py
@@ -22,12 +22,11 @@ class RbInspector(LLDBInterface):
rstring = rstring.Dereference()
flags = rstring.GetValueForExpressionPath(".basic->flags").unsigned
+ clen = int(rstring.GetValueForExpressionPath(".len").value, 0)
if flags & self.ruby_globals["RUBY_FL_USER1"]:
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)
- clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0)
return cptr, clen