Skip to content

Commit

Permalink
RString::len was moved at 7577c10
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
nobu committed Jun 11, 2023
1 parent 52131d8 commit dcdc2cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions misc/lldb_rb/utils.py
Expand Up @@ -22,12 +22,11 @@ def string2cstr(self, rstring):
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

Expand Down

0 comments on commit dcdc2cb

Please sign in to comment.