mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lldb_rp: support T_CLASS,T_MODULE,T_ICLASS [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8885389bd3
commit
cdb312ab31
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@ def lldb_rp(debugger, command, result, internal_dict):
|
|||
tRObject = target.FindFirstType("struct RObject").GetPointerType()
|
||||
val = val.Cast(tRObject)
|
||||
print >> result, 'T_OBJECT: %s' % val.Dereference()
|
||||
elif flType == RUBY_T_CLASS or flType == RUBY_T_MODULE or flType == RUBY_T_ICLASS:
|
||||
tRClass = target.FindFirstType("struct RClass").GetPointerType()
|
||||
val = val.Cast(tRClass)
|
||||
print >> result, 'T_%s: %s' % ('CLASS' if flType == RUBY_T_CLASS else 'MODULE' if flType == RUBY_T_MODULE else 'ICLASS', val.Dereference())
|
||||
elif flType == RUBY_T_STRING:
|
||||
tRString = target.FindFirstType("struct RString").GetPointerType()
|
||||
val = val.Cast(tRString)
|
||||
|
|
Loading…
Reference in a new issue