From dcdc2cbd8ed581f49e2ada72f695ace5643d0852 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 11 Jun 2023 17:31:49 +0900 Subject: [PATCH] `RString::len` was moved at 7577c101ed6452de3e72fadb43db595946acc701 [ci skip] --- misc/lldb_rb/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc/lldb_rb/utils.py b/misc/lldb_rb/utils.py index b6cfe2fe77a354..bd2c0330b8e6e8 100644 --- a/misc/lldb_rb/utils.py +++ b/misc/lldb_rb/utils.py @@ -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