1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add FROZEN to lldb debug output

This commit is contained in:
Aaron Patterson 2019-05-09 12:27:44 -07:00
parent 025206d0dd
commit 5f05851ae3
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -111,6 +111,8 @@ def lldb_inspect(debugger, target, result, val):
flags = val.GetValueForExpressionPath("->flags").GetValueAsUnsigned()
if (flags & RUBY_FL_PROMOTED) == RUBY_FL_PROMOTED:
print >> result, "[PROMOTED] "
if (flags & RUBY_FL_FREEZE) == RUBY_FL_FREEZE:
print >> result, "[FROZEN] "
flType = flags & RUBY_T_MASK
if flType == RUBY_T_NONE:
print >> result, 'T_NONE: %s' % val.Dereference()