123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- #ifndef _OBJC_GDB_H
- #define _OBJC_GDB_H
- #ifdef __APPLE_API_PRIVATE
- #ifndef _OBJC_PRIVATE_H_
- # define _OBJC_PRIVATE_H_
- #endif
- #include <stdint.h>
- #include <objc/hashtable.h>
- #include <objc/maptable.h>
- __BEGIN_DECLS
- OBJC_EXPORT Class _Nonnull
- gdb_class_getClass(Class _Nonnull cls)
- #if __OBJC2__
- OBJC_AVAILABLE(10.6, 3.1, 9.0, 1.0, 2.0);
- #else
- OBJC_AVAILABLE(10.7, 3.1, 9.0, 1.0, 2.0);
- #endif
- OBJC_EXPORT Class _Nonnull gdb_object_getClass(id _Nullable obj)
- OBJC_AVAILABLE(10.7, 4.3, 9.0, 1.0, 2.0);
- #if __OBJC2__
- OBJC_EXPORT const char * _Nonnull
- objc_debug_class_getNameRaw(Class _Nullable cls)
- OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- #endif
- #if __OBJC2__
- OBJC_EXPORT NXMapTable * _Nullable gdb_objc_realized_classes
- OBJC_AVAILABLE(10.6, 3.1, 9.0, 1.0, 2.0);
- OBJC_EXPORT uintptr_t objc_debug_realized_class_generation_count;
- #else
- OBJC_EXPORT NXHashTable * _Nullable _objc_debug_class_hash
- __OSX_AVAILABLE(10.2)
- __IOS_UNAVAILABLE __TVOS_UNAVAILABLE
- __WATCHOS_UNAVAILABLE __BRIDGEOS_UNAVAILABLE;
- #endif
- #if __OBJC2__
- OBJC_EXPORT const uintptr_t objc_debug_isa_class_mask
- OBJC_AVAILABLE(10.10, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT const uintptr_t objc_debug_isa_magic_mask
- OBJC_AVAILABLE(10.10, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT const uintptr_t objc_debug_isa_magic_value
- OBJC_AVAILABLE(10.10, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT const uintptr_t objc_debug_indexed_isa_magic_mask;
- OBJC_EXPORT const uintptr_t objc_debug_indexed_isa_magic_value;
- OBJC_EXPORT const uintptr_t objc_debug_indexed_isa_index_mask;
- OBJC_EXPORT const uintptr_t objc_debug_indexed_isa_index_shift;
- OBJC_EXPORT Class _Nullable objc_indexed_classes[];
- OBJC_EXPORT uintptr_t objc_indexed_classes_count;
- #endif
- #if __OBJC2__
- OBJC_EXPORT const uintptr_t objc_debug_class_rw_data_mask
- OBJC_AVAILABLE(10.13, 11.0, 11.0, 4.0, 2.0);
- #endif
- #if __OBJC2__
- OBJC_EXPORT uintptr_t objc_debug_taggedpointer_mask
- OBJC_AVAILABLE(10.9, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT uintptr_t objc_debug_taggedpointer_obfuscator
- OBJC_AVAILABLE(10.14, 12.0, 12.0, 5.0, 3.0);
- OBJC_EXPORT unsigned int objc_debug_taggedpointer_slot_shift
- OBJC_AVAILABLE(10.9, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT uintptr_t objc_debug_taggedpointer_slot_mask
- OBJC_AVAILABLE(10.9, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT Class _Nullable objc_debug_taggedpointer_classes[]
- OBJC_AVAILABLE(10.9, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT unsigned int objc_debug_taggedpointer_payload_lshift
- OBJC_AVAILABLE(10.9, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT unsigned int objc_debug_taggedpointer_payload_rshift
- OBJC_AVAILABLE(10.9, 7.0, 9.0, 1.0, 2.0);
- OBJC_EXPORT uintptr_t objc_debug_taggedpointer_ext_mask
- OBJC_AVAILABLE(10.12, 10.0, 10.0, 3.0, 2.0);
- OBJC_EXPORT unsigned int objc_debug_taggedpointer_ext_slot_shift
- OBJC_AVAILABLE(10.12, 10.0, 10.0, 3.0, 2.0);
- OBJC_EXPORT uintptr_t objc_debug_taggedpointer_ext_slot_mask
- OBJC_AVAILABLE(10.12, 10.0, 10.0, 3.0, 2.0);
- OBJC_EXPORT Class _Nullable objc_debug_taggedpointer_ext_classes[]
- OBJC_AVAILABLE(10.12, 10.0, 10.0, 3.0, 2.0);
- OBJC_EXPORT unsigned int objc_debug_taggedpointer_ext_payload_lshift
- OBJC_AVAILABLE(10.12, 10.0, 10.0, 3.0, 2.0);
- OBJC_EXPORT unsigned int objc_debug_taggedpointer_ext_payload_rshift
- OBJC_AVAILABLE(10.12, 10.0, 10.0, 3.0, 2.0);
- #endif
- #if __OBJC2__
- OBJC_EXPORT const uintptr_t objc_debug_swift_stable_abi_bit
- OBJC_AVAILABLE(10.14.4, 12.2, 12.2, 5.2, 3.2);
- #endif
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_magic_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_next_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_thread_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_parent_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_child_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_depth_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- OBJC_EXTERN const uint32_t objc_debug_autoreleasepoolpage_hiwat_offset OBJC_AVAILABLE(10.15, 13.0, 13.0, 6.0, 5.0);
- __END_DECLS
- #endif
- #endif
|