mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lldb_cruby.py: fixed dump of embedded RArray
[ci skip]
This commit is contained in:
parent
ce50af21af
commit
9af52c0d09
1 changed files with 4 additions and 1 deletions
|
@ -158,7 +158,10 @@ def lldb_inspect(debugger, target, result, val):
|
||||||
result.write(" {(empty)}\n")
|
result.write(" {(empty)}\n")
|
||||||
else:
|
else:
|
||||||
result.write("\n")
|
result.write("\n")
|
||||||
append_command_output(debugger, "expression -Z %d -fx -- (const VALUE*)%0#x" % (len, ptr.GetValueAsUnsigned()), result)
|
if ptr.GetValueAsSigned() == 0:
|
||||||
|
append_command_output(debugger, "expression -fx -- ((struct RArray*)%0#x)->as.ary" % val.GetValueAsUnsigned(), result)
|
||||||
|
else:
|
||||||
|
append_command_output(debugger, "expression -Z %d -fx -- (const VALUE*)%0#x" % (len, ptr.GetValueAsUnsigned()), result)
|
||||||
elif flType == RUBY_T_HASH:
|
elif flType == RUBY_T_HASH:
|
||||||
result.write("T_HASH: %s" % flaginfo)
|
result.write("T_HASH: %s" % flaginfo)
|
||||||
append_command_output(debugger, "p *(struct RHash *) %0#x" % val.GetValueAsUnsigned(), result)
|
append_command_output(debugger, "p *(struct RHash *) %0#x" % val.GetValueAsUnsigned(), result)
|
||||||
|
|
Loading…
Reference in a new issue