ruby-changes:52697
From: nobu <ko1@a...>
Date: Wed, 3 Oct 2018 18:54:29 +0900 (JST)
Subject: [ruby-changes:52697] nobu:r64909 (trunk): lldb_rp: support T_CLASS, T_MODULE, T_ICLASS [ci skip]
nobu 2018-10-03 18:54:25 +0900 (Wed, 03 Oct 2018) New Revision: 64909 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64909 Log: lldb_rp: support T_CLASS,T_MODULE,T_ICLASS [ci skip] Modified files: trunk/misc/lldb_cruby.py Index: misc/lldb_cruby.py =================================================================== --- misc/lldb_cruby.py (revision 64908) +++ misc/lldb_cruby.py (revision 64909) @@ -109,6 +109,10 @@ def lldb_rp(debugger, command, result, i https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L109 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/