RString::len was moved at 7577c101ed6452de3e72fadb43db595946acc701

[ci skip]
This commit is contained in:
Nobuyoshi Nakada 2023-06-11 17:31:49 +09:00
parent 52131d84f2
commit dcdc2cbd8e
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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