diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-25 16:58:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-25 16:58:24 +0900 |
commit | 112c9f1430ce495e76aef73221578adc9b240a3b (patch) | |
tree | f5263c409b3cbb7e07608c05b55fcea70b9122c3 /misc/lldb_cruby.py | |
parent | 33c5ad3154099769cec7f77b6d95cbf4b8d52bb0 (diff) | |
download | ruby-112c9f1430ce495e76aef73221578adc9b240a3b.tar.gz |
lldb_inspect: removed unnecessary newline and `end` option
Diffstat (limited to 'misc/lldb_cruby.py')
-rwxr-xr-x | misc/lldb_cruby.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index aacb83602b..688f897291 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -202,8 +202,7 @@ def lldb_inspect(debugger, target, result, val): elif flType == RUBY_T_REGEXP: tRRegex = target.FindFirstType("struct RRegexp").GetPointerType() val = val.Cast(tRRegex) - print("(Regex)", file=result) - print("->src {", file=result) + print("(Regex) ->src {", file=result) lldb_inspect(debugger, target, result, val.GetValueForExpressionPath("->src")) print("}", file=result) elif flType == RUBY_T_DATA: @@ -247,7 +246,7 @@ def count_objects(debugger, command, ctx, result, internal_dict): counts[obj_type] += 1 total += num_slots - print("\rTOTAL: %d, FREE: %d" % (total, counts[0x00]), end="") + print("\rTOTAL: %d, FREE: %d" % (total, counts[0x00])) for sym in value_types: print("%s: %d" % (sym, counts[globals()[sym]])) |