summaryrefslogtreecommitdiff
path: root/misc/lldb_cruby.py
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-06-04 09:24:57 +0900
committerNobuyoshi Nakada <[email protected]>2021-06-04 09:24:57 +0900
commit91c542ad0570d02c269877226689085128038f54 ()
treeaa7a15da6108e8b6b745aa07355f9f22c7b225ee /misc/lldb_cruby.py
parent3c57c087ec4ac9f2d7b9f4111a667efe42d30cfb (diff)
lldb_cruby.py: push non-flonum float to history [ci skip]
-rwxr-xr-xmisc/lldb_cruby.py4
1 files changed, 1 insertions, 3 deletions
@@ -348,9 +348,7 @@ def lldb_inspect(debugger, target, result, val):
append_command_output(debugger, "expression -Z %x -fx -- (const BDIGIT*)((struct RBignum*)%d)->as.heap.digits" % (len, val.GetValueAsUnsigned()), result)
# append_command_output(debugger, "x ((struct RBignum *) %0#x)->as.heap.digits / %d" % (val.GetValueAsUnsigned(), len), result)
elif flType == RUBY_T_FLOAT:
- tRFloat = target.FindFirstType("struct RFloat").GetPointerType()
- val = val.Cast(tRFloat)
- print(val.GetValueForExpressionPath("->float_value"), file=result)
elif flType == RUBY_T_RATIONAL:
tRRational = target.FindFirstType("struct RRational").GetPointerType()
val = val.Cast(tRRational)