From ad67845ba82023474ed2c914e7b38859a9cd488d Mon Sep 17 00:00:00 2001 From: tenderlove Date: Tue, 2 Apr 2019 21:13:22 +0000 Subject: Fix typo in lldb script Also fix tests git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/lldb_cruby.py | 2 +- misc/test_lldb_cruby.rb | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index a39a41ecd6..6a60725294 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -197,7 +197,7 @@ def lldb_inspect(debugger, target, result, val): 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)" diff --git a/misc/test_lldb_cruby.rb b/misc/test_lldb_cruby.rb index 4d1cc499f5..bd58619ac2 100644 --- a/misc/test_lldb_cruby.rb +++ b/misc/test_lldb_cruby.rb @@ -9,7 +9,7 @@ class TestLLDBInit < Test::Unit::TestCase tf.puts <