1
0
Fork 0
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:
Aaron Patterson 2020-05-07 14:19:08 -07:00
parent 2d27632c3c
commit 56c6d520a0
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -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)