diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-25 14:33:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-25 14:33:20 +0900 |
commit | e720a6b48582900efd1bd326210644b2fc0f2c5d (patch) | |
tree | d6759ab42ea4b11e52ec5fa024f02cffb01a3cfb /misc/lldb_rb | |
parent | 990e11b60eae06d7e8205405fc99320267b5843b (diff) |
Show the chilled status of a String [ci skip]
Diffstat (limited to 'misc/lldb_rb')
-rw-r--r-- | misc/lldb_rb/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/lldb_rb/utils.py b/misc/lldb_rb/utils.py index a321426234..054c206cef 100644 --- a/misc/lldb_rb/utils.py +++ b/misc/lldb_rb/utils.py @@ -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) |