[前][次][番号順一覧][スレッド一覧]

ruby-changes:52696

From: nobu <ko1@a...>
Date: Wed, 3 Oct 2018 18:54:26 +0900 (JST)
Subject: [ruby-changes:52696] nobu:r64908 (trunk): lldb_rp: use append_command_output [ci skip]

nobu	2018-10-03 18:54:21 +0900 (Wed, 03 Oct 2018)

  New Revision: 64908

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64908

  Log:
    lldb_rp: use append_command_output [ci skip]

  Modified files:
    trunk/misc/lldb_cruby.py
Index: misc/lldb_cruby.py
===================================================================
--- misc/lldb_cruby.py	(revision 64907)
+++ misc/lldb_cruby.py	(revision 64908)
@@ -91,7 +91,7 @@ def lldb_rp(debugger, command, result, i https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L91
     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, i https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L141
                 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, i https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L158
         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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]