summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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