ruby-changes:57895
From: Nobuyoshi <ko1@a...>
Date: Wed, 25 Sep 2019 16:59:05 +0900 (JST)
Subject: [ruby-changes:57895] 112c9f1430 (master): lldb_inspect: removed unnecessary newline and `end` option
https://git.ruby-lang.org/ruby.git/commit/?id=112c9f1430 From 112c9f1430ce495e76aef73221578adc9b240a3b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 25 Sep 2019 16:58:24 +0900 Subject: lldb_inspect: removed unnecessary newline and `end` option diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index aacb836..688f897 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -202,8 +202,7 @@ def lldb_inspect(debugger, target, result, val): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L202 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): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L246 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]])) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/