diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-01-06 09:03:45 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-01-06 14:33:35 -0500 |
commit | ee4784c06e991c605df31ab520e6b09c0ebc1e9e (patch) | |
tree | 71baf9b3309513d499cd1e81e3f43fe9d0df8c7b /misc | |
parent | 3818cfbd47265d509908d63331e17c3fc1dc5a8a (diff) |
Update lldb_cruby.py for VWA strings
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5399
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/lldb_cruby.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index 53e42b711c..c6c18613d8 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -191,8 +191,7 @@ def string2cstr(rstring): 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) - clen = (flags & RSTRING_EMBED_LEN_MASK) >> RSTRING_EMBED_LEN_SHIFT + clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0) return cptr, clen def output_string(debugger, result, rstring): |