Also fix tests

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2019-04-02 21:13:22 +00:00
Родитель 714c2b0a93
Коммит ad67845ba8
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -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)"

Просмотреть файл

@ -9,7 +9,7 @@ class TestLLDBInit < Test::Unit::TestCase
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
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