ruby-changes:55212
From: tenderlove <ko1@a...>
Date: Wed, 3 Apr 2019 06:13:31 +0900 (JST)
Subject: [ruby-changes:55212] tenderlove:r67419 (trunk): Fix typo in lldb script
tenderlove 2019-04-03 06:13:22 +0900 (Wed, 03 Apr 2019) New Revision: 67419 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67419 Log: Fix typo in lldb script Also fix tests Modified files: trunk/misc/lldb_cruby.py trunk/misc/test_lldb_cruby.rb Index: misc/test_lldb_cruby.rb =================================================================== --- misc/test_lldb_cruby.rb (revision 67418) +++ misc/test_lldb_cruby.rb (revision 67419) @@ -9,7 +9,7 @@ class TestLLDBInit < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/misc/test_lldb_cruby.rb#L9 tf.puts <<eom target create ./miniruby command script import -r misc/lldb_cruby.py -b rb_p +b rb_inspect run -e'p #{expr}' rp obj eom @@ -24,8 +24,12 @@ eom https://github.com/ruby/ruby/blob/trunk/misc/test_lldb_cruby.rb#L24 assert_rp 'Object.new', 'T_OBJECT' end + def test_rp_regex + assert_rp '/foo/', '[(]Regex' + end + def test_rp_symbol - assert_rp ':abcde', /immediate\(\h+\)/ + assert_rp ':abcde', /T_SYMBOL: \(\h+\)/ end def test_rp_string Index: misc/lldb_cruby.py =================================================================== --- misc/lldb_cruby.py (revision 67418) +++ misc/lldb_cruby.py (revision 67419) @@ -197,7 +197,7 @@ def lldb_inspect(debugger, target, resul https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L197 if not imag.startswith("-"): imag = "+" + imag print >> result, "(Complex) " + real + imag + "i" - elif flType == RUBY_T_REGEX: + elif flType == RUBY_T_REGEXP: tRRegex = target.FindFirstType("struct RRegexp").GetPointerType() val = val.Cast(tRRegex) print >> result, "(Regex)" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/