003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/source/Plugins/Language/ObjC
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
source
/
Plugins
/
Language
/
ObjC
/
📁
..
📄
CF.cpp
(8.75 KB)
📄
CF.h
(1.25 KB)
📄
CFBasicHash.cpp
(2.8 KB)
📄
CFBasicHash.h
(2.19 KB)
📄
Cocoa.cpp
(34.64 KB)
📄
Cocoa.h
(4.61 KB)
📄
CoreMedia.cpp
(3.03 KB)
📄
CoreMedia.h
(884 B)
📄
NSArray.cpp
(25.25 KB)
📄
NSDictionary.cpp
(37.47 KB)
📄
NSDictionary.h
(2.78 KB)
📄
NSError.cpp
(6.72 KB)
📄
NSException.cpp
(6.69 KB)
📄
NSIndexPath.cpp
(8.73 KB)
📄
NSSet.cpp
(24 KB)
📄
NSSet.h
(1.35 KB)
📄
NSString.cpp
(14.48 KB)
📄
NSString.h
(1.51 KB)
📄
ObjCLanguage.cpp
(45.73 KB)
📄
ObjCLanguage.h
(5.08 KB)
Editing: CFBasicHash.h
//===-- CFBasicHash.h -------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_CFBASICHASH_H #define LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_CFBASICHASH_H #include "lldb/Target/Process.h" #include "lldb/Target/Target.h" namespace lldb_private { class CFBasicHash { public: enum class HashType { set = 0, dict }; CFBasicHash() = default; ~CFBasicHash() = default; bool Update(lldb::addr_t addr, ExecutionContextRef exe_ctx_rf); bool IsValid() const; bool IsMutable() const { return m_mutable; }; bool IsMultiVariant() const { return m_multi; } HashType GetType() const { return m_type; } size_t GetCount() const; lldb::addr_t GetKeyPointer() const; lldb::addr_t GetValuePointer() const; private: template <typename T> struct __CFBasicHash { struct RuntimeBase { T cfisa; T cfinfoa; } base; struct Bits { uint16_t __reserved0; uint16_t __reserved1 : 2; uint16_t keys_offset : 1; uint16_t counts_offset : 2; uint16_t counts_width : 2; uint16_t __reserved2 : 9; uint32_t used_buckets; // number of used buckets uint64_t deleted : 16; // number of elements deleted uint64_t num_buckets_idx : 8; // index to number of buckets uint64_t __reserved3 : 40; uint64_t __reserved4; } bits; T pointers[3]; }; template <typename T> bool UpdateFor(std::unique_ptr<__CFBasicHash<T>> &m_ht); size_t GetPointerCount() const; uint32_t m_ptr_size = UINT32_MAX; lldb::ByteOrder m_byte_order = lldb::eByteOrderInvalid; Address m_address = LLDB_INVALID_ADDRESS; std::unique_ptr<__CFBasicHash<uint32_t>> m_ht_32 = nullptr; std::unique_ptr<__CFBasicHash<uint64_t>> m_ht_64 = nullptr; ExecutionContextRef m_exe_ctx_ref; bool m_mutable = true; bool m_multi = false; HashType m_type; }; } // namespace lldb_private #endif // LLDB_SOURCE_PLUGINS_LANGUAGE_OBJC_CFBASICHASH_H
Upload File
Create Folder