From 3c57c087ec4ac9f2d7b9f4111a667efe42d30cfb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada 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(-) (limited to 'misc/lldb_cruby.py') diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index 898cb2fa68..67810d5417 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -350,7 +350,7 @@ def lldb_inspect(debugger, target, result, val): 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.2.3