mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add T_MOVED support to lldb
This commit is contained in:
parent
2d27632c3c
commit
56c6d520a0
1 changed files with 4 additions and 0 deletions
|
@ -232,6 +232,10 @@ def lldb_inspect(debugger, target, result, val):
|
|||
append_command_output(debugger, "p (node_type) %d" % nd_type, result)
|
||||
val = val.Cast(tRTypedData)
|
||||
append_command_output(debugger, "p *(struct RNode *) %0#x" % val.GetValueAsUnsigned(), result)
|
||||
elif flType == RUBY_T_MOVED:
|
||||
tRTypedData = target.FindFirstType("struct RMoved").GetPointerType()
|
||||
val = val.Cast(tRTypedData)
|
||||
append_command_output(debugger, "p *(struct RMoved *) %0#x" % val.GetValueAsUnsigned(), result)
|
||||
else:
|
||||
print("Not-handled type %0#x" % flType, file=result)
|
||||
print(val, file=result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue