diff --git a/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift b/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift index 5d9005b0..15e1e1dd 100644 --- a/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift +++ b/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift @@ -1,15 +1,15 @@ #if swift(>=6.3) -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) +#if objectFormat(MachO) @section("__DATA_CONST,__lldbformatters") #else @section(".lldbformatters") #endif @used -let __BasicContainers___RigidArray______formatter: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) = ( +let `^BasicContainers[.]RigidArray<.+>$ formatter`: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) = ( // version 0x01, // remaining record size - 0x5f, + 0x62, // type name size 0x22, // type name @@ -19,9 +19,9 @@ let __BasicContainers___RigidArray______formatter: (UInt8, UInt8, UInt8, UInt8, // sig_update 0x06, // program size - 0x27, + 0x2a, // program - 0x20, 0x00, 0x03, 0x22, 0x08, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x23, 0x12, 0x60, 0x23, 0x18, 0x60, 0x20, 0x00, 0x03, 0x22, 0x06, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x23, 0x12, 0x60, 0x23, 0x18, 0x60, 0x23, 0x21, 0x60, + 0x20, 0x00, 0x03, 0x22, 0x08, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x23, 0x12, 0x60, 0x23, 0x18, 0x60, 0x20, 0x00, 0x03, 0x22, 0x06, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x23, 0x12, 0x60, 0x23, 0x18, 0x60, 0x23, 0x21, 0x60, 0x21, 0x01, 0x13, // sig_get_num_children 0x02, // program size @@ -33,6 +33,6 @@ let __BasicContainers___RigidArray______formatter: (UInt8, UInt8, UInt8, UInt8, // program size 0x0a, // program - 0x20, 0x01, 0x03, 0x20, 0x03, 0x03, 0x23, 0x11, 0x60, 0x13 + 0x20, 0x01, 0x03, 0x20, 0x03, 0x03, 0x23, 0x11, 0x60, 0x13, ) #endif diff --git a/Utils/Debugger/Formatters/RigidArray.py b/Utils/Debugger/Formatters/RigidArray.py index fef4b4e8..57b6f066 100644 --- a/Utils/Debugger/Formatters/RigidArray.py +++ b/Utils/Debugger/Formatters/RigidArray.py @@ -15,7 +15,7 @@ class RigidArraySynthetic: def get_child_at_index(self, idx: int) -> lldb.SBValue: return self.storage.GetChildAtIndex(idx) - def update(self) -> None: + def update(self) -> bool: self.storage = self.valobj.GetChildMemberWithName( "_storage" ).GetSyntheticValue() @@ -24,3 +24,4 @@ class RigidArraySynthetic: .GetSyntheticValue() .GetValueAsUnsigned() ) + return True