mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lldb_cruby.py: support RVARGC on T_CLASS [ci skip]
This commit is contained in:
parent
549af505c5
commit
1a0e0e8996
1 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,9 @@ def lldb_inspect(debugger, target, result, val):
|
|||
elif flType == RUBY_T_CLASS or flType == RUBY_T_MODULE or flType == RUBY_T_ICLASS:
|
||||
result.write('T_%s: %s' % ('CLASS' if flType == RUBY_T_CLASS else 'MODULE' if flType == RUBY_T_MODULE else 'ICLASS', flaginfo))
|
||||
append_command_output(debugger, "print *(struct RClass*)%0#x" % val.GetValueAsUnsigned(), result)
|
||||
tRClass = target.FindFirstType("struct RClass")
|
||||
if not val.Cast(tRClass).GetChildMemberWithName("ptr").IsValid():
|
||||
append_command_output(debugger, "print *(struct rb_classext_struct*)%0#x" % (val.GetValueAsUnsigned() + tRClass.GetByteSize()), result)
|
||||
elif flType == RUBY_T_STRING:
|
||||
result.write('T_STRING: %s' % flaginfo)
|
||||
encidx = ((flags & RUBY_ENCODING_MASK)>>RUBY_ENCODING_SHIFT)
|
||||
|
|
Loading…
Add table
Reference in a new issue