diff options
author | Peter Zhu <[email protected]> | 2022-01-06 09:03:45 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-01-06 14:33:35 -0500 |
commit | ee4784c06e991c605df31ab520e6b09c0ebc1e9e () | |
tree | 71baf9b3309513d499cd1e81e3f43fe9d0df8c7b | |
parent | 3818cfbd47265d509908d63331e17c3fc1dc5a8a (diff) |
Update lldb_cruby.py for VWA strings
Notes: Merged: https://.com/ruby/ruby/pull/5399
-rwxr-xr-x | misc/lldb_cruby.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 return cptr, clen def output_string(debugger, result, rstring): |