mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Show the chilled status of a String [ci skip]
This commit is contained in:
parent
990e11b60e
commit
e720a6b485
5 changed files with 17 additions and 54 deletions
|
@ -119,6 +119,10 @@ class RbInspector(LLDBInterface):
|
|||
self.result.write('T_STRING: %s' % flaginfo)
|
||||
tRString = self.target.FindFirstType("struct RString").GetPointerType()
|
||||
|
||||
chilled = self.ruby_globals["RUBY_FL_USER3"]
|
||||
if (rval.flags & chilled) != 0:
|
||||
self.result.write("[CHILLED] ")
|
||||
|
||||
rb_enc_mask = self.ruby_globals["RUBY_ENCODING_MASK"]
|
||||
rb_enc_shift = self.ruby_globals["RUBY_ENCODING_SHIFT"]
|
||||
encidx = ((rval.flags & rb_enc_mask) >> rb_enc_shift)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue