Show the chilled status of a String [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2024-03-25 14:33:20 +09:00
parent 990e11b60e
commit e720a6b485
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
5 changed files with 17 additions and 54 deletions

View file

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