зеркало из https://github.com/github/ruby.git
lldb_cruby.py: fix non-flonum float inspection [ci skip]
This commit is contained in:
Родитель
9f3240d4f4
Коммит
3c57c087ec
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче