From e720a6b48582900efd1bd326210644b2fc0f2c5d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 25 Mar 2024 14:33:20 +0900 Subject: Show the chilled status of a String [ci skip] --- misc/lldb_rb/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'misc/lldb_rb') 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) -- cgit v1.2.3