mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add T_STRUCT to lldb inspect helper
This commit is contained in:
parent
7fd51c0241
commit
87a560a057
Notes:
git
2022-06-22 10:16:32 +09:00
1 changed files with 4 additions and 0 deletions
|
@ -418,6 +418,10 @@ def lldb_inspect(debugger, target, result, val):
|
|||
print("T_IMEMO: ", file=result)
|
||||
append_command_output(debugger, "p (enum imemo_type) %d" % imemo_type, result)
|
||||
append_command_output(debugger, "p *(struct MEMO *) %0#x" % val.GetValueAsUnsigned(), result)
|
||||
elif flType == RUBY_T_STRUCT:
|
||||
tRTypedData = target.FindFirstType("struct RStruct").GetPointerType()
|
||||
val = val.Cast(tRTypedData)
|
||||
append_command_output(debugger, "p *(struct RStruct *) %0#x" % val.GetValueAsUnsigned(), result)
|
||||
elif flType == RUBY_T_ZOMBIE:
|
||||
tRZombie = target.FindFirstType("struct RZombie").GetPointerType()
|
||||
val = val.Cast(tRZombie)
|
||||
|
|
Loading…
Add table
Reference in a new issue