aboutsummaryrefslogtreecommitdiffstats
path: root/misc/lldb_cruby.py
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-03 09:54:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-03 09:54:21 +0000
commit9cc268d53cc930a958b40e072893ca0334846cfc (patch)
tree64ba24ceece0c0e19c5936233acd032be14b900e /misc/lldb_cruby.py
parentde2dee99d5bbf92d897ab0f59361b38efdbe9c21 (diff)
downloadruby-9cc268d53cc930a958b40e072893ca0334846cfc.tar.gz
lldb_rp: use append_command_output [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/lldb_cruby.py')
-rwxr-xr-xmisc/lldb_cruby.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 96fc743dd3..41ad497cf7 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -91,7 +91,7 @@ def lldb_rp(debugger, command, result, internal_dict):
elif fixnum_p(num):
print >> result, num >> 1
elif flonum_p(num):
- debugger.HandleCommand("print rb_float_value(%0#x)" % val.GetValueAsUnsigned())
+ append_command_output(debugger, "print rb_float_value(%0#x)" % val.GetValueAsUnsigned(), result)
elif num & RUBY_IMMEDIATE_MASK:
print >> result, 'immediate(%x)' % num
else:
@@ -141,7 +141,7 @@ def lldb_rp(debugger, command, result, internal_dict):
result.write("\n")
append_command_output(debugger, "expression -Z %d -fx -- (const VALUE*)%0#x" % (len, ptr.GetValueAsUnsigned()), result)
elif flType == RUBY_T_HASH:
- debugger.HandleCommand("p *(struct RHash *) %0#x" % val.GetValueAsUnsigned())
+ append_command_output(debugger, "p *(struct RHash *) %0#x" % val.GetValueAsUnsigned(), result)
elif flType == RUBY_T_BIGNUM:
tRBignum = target.FindFirstType("struct RBignum").GetPointerType()
val = val.Cast(tRBignum)
@@ -158,7 +158,7 @@ def lldb_rp(debugger, command, result, internal_dict):
elif flType == RUBY_T_FLOAT:
tRFloat = target.FindFirstType("struct RFloat").GetPointerType()
val = val.Cast(tRFloat)
- debugger.HandleCommand("p *(double *)%0#x" % val.GetValueForExpressionPath("->float_value").GetAddress())
+ append_command_output(debugger, "p *(double *)%0#x" % val.GetValueForExpressionPath("->float_value").GetAddress(), result)
elif flType == RUBY_T_DATA:
tRTypedData = target.FindFirstType("struct RTypedData").GetPointerType()
val = val.Cast(tRTypedData)