mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update lldb_cruby.py for VWA strings
This commit is contained in:
parent
3818cfbd47
commit
ee4784c06e
Notes:
git
2022-01-07 04:34:00 +09:00
1 changed files with 1 additions and 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
|
||||
clen = int(rstring.GetValueForExpressionPath(".as.embed.len").value, 0)
|
||||
return cptr, clen
|
||||
|
||||
def output_string(debugger, result, rstring):
|
||||
|
|
Loading…
Add table
Reference in a new issue