RString::len
was moved at 7577c101ed6452de3e72fadb43db595946acc701
[ci skip]
This commit is contained in:
parent
52131d84f2
commit
dcdc2cbd8e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user