ruby-changes:66427
From: Nobuyoshi <ko1@a...>
Date: Fri, 4 Jun 2021 09:12:56 +0900 (JST)
Subject: [ruby-changes:66427] 3c57c087ec (master): lldb_cruby.py: fix non-flonum float inspection [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=3c57c087ec From 3c57c087ec4ac9f2d7b9f4111a667efe42d30cfb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 4 Jun 2021 09:12:34 +0900 Subject: lldb_cruby.py: fix non-flonum float inspection [ci skip] --- misc/lldb_cruby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index 898cb2f..67810d5 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -350,7 +350,7 @@ def lldb_inspect(debugger, target, result, val): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L350 elif flType == RUBY_T_FLOAT: tRFloat = target.FindFirstType("struct RFloat").GetPointerType() val = val.Cast(tRFloat) - append_command_output(debugger, "p *(double *)%0#x" % val.GetValueForExpressionPath("->float_value").GetAddress(), result) + print(val.GetValueForExpressionPath("->float_value"), file=result) elif flType == RUBY_T_RATIONAL: tRRational = target.FindFirstType("struct RRational").GetPointerType() val = val.Cast(tRRational) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/