diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-04 09:12:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-04 09:12:34 +0900 |
commit | 3c57c087ec4ac9f2d7b9f4111a667efe42d30cfb (patch) | |
tree | 14ffc99a773d416a3415f10cf57ed8bb7612e118 /misc | |
parent | 9f3240d4f4439e253d230f8c06d9923c76a68c6d (diff) |
lldb_cruby.py: fix non-flonum float inspection [ci skip]
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/lldb_cruby.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |