123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- //
- // KSCrashReportFields.h
- //
- // Created by Karl Stenerud on 2012-10-07.
- //
- // Copyright (c) 2012 Karl Stenerud. All rights reserved.
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to deal
- // in the Software without restriction, including without limitation the rights
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- // copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall remain in place
- // in this source code.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- // THE SOFTWARE.
- //
- #ifndef HDR_KSCrashReportFields_h
- #define HDR_KSCrashReportFields_h
- #pragma mark - Report Types -
- #define KSCrashReportType_Minimal "minimal"
- #define KSCrashReportType_Standard "standard"
- #define KSCrashReportType_Custom "custom"
- #pragma mark - Memory Types -
- #define KSCrashMemType_Block "objc_block"
- #define KSCrashMemType_Class "objc_class"
- #define KSCrashMemType_NullPointer "null_pointer"
- #define KSCrashMemType_Object "objc_object"
- #define KSCrashMemType_String "string"
- #define KSCrashMemType_Unknown "unknown"
- #pragma mark - Exception Types -
- #define KSCrashExcType_CPPException "cpp_exception"
- #define KSCrashExcType_Deadlock "deadlock"
- #define KSCrashExcType_Mach "mach"
- #define KSCrashExcType_NSException "nsexception"
- #define KSCrashExcType_Signal "signal"
- #define KSCrashExcType_User "user"
- #pragma mark - Common -
- #define KSCrashField_Address "address"
- #define KSCrashField_Contents "contents"
- #define KSCrashField_Exception "exception"
- #define KSCrashField_FirstObject "first_object"
- #define KSCrashField_Index "index"
- #define KSCrashField_Ivars "ivars"
- #define KSCrashField_Language "language"
- #define KSCrashField_Name "name"
- #define KSCrashField_UserInfo "userInfo"
- #define KSCrashField_ReferencedObject "referenced_object"
- #define KSCrashField_Type "type"
- #define KSCrashField_UUID "uuid"
- #define KSCrashField_Value "value"
- #define KSCrashField_Error "error"
- #define KSCrashField_JSONData "json_data"
- #pragma mark - Notable Address -
- #define KSCrashField_Class "class"
- #define KSCrashField_LastDeallocObject "last_deallocated_obj"
- #pragma mark - Backtrace -
- #define KSCrashField_InstructionAddr "instruction_addr"
- #define KSCrashField_LineOfCode "line_of_code"
- #define KSCrashField_ObjectAddr "object_addr"
- #define KSCrashField_ObjectName "object_name"
- #define KSCrashField_SymbolAddr "symbol_addr"
- #define KSCrashField_SymbolName "symbol_name"
- #pragma mark - Stack Dump -
- #define KSCrashField_DumpEnd "dump_end"
- #define KSCrashField_DumpStart "dump_start"
- #define KSCrashField_GrowDirection "grow_direction"
- #define KSCrashField_Overflow "overflow"
- #define KSCrashField_StackPtr "stack_pointer"
- #pragma mark - Thread Dump -
- #define KSCrashField_Backtrace "backtrace"
- #define KSCrashField_Basic "basic"
- #define KSCrashField_Crashed "crashed"
- #define KSCrashField_CurrentThread "current_thread"
- #define KSCrashField_DispatchQueue "dispatch_queue"
- #define KSCrashField_NotableAddresses "notable_addresses"
- #define KSCrashField_Registers "registers"
- #define KSCrashField_Skipped "skipped"
- #define KSCrashField_Stack "stack"
- #pragma mark - Binary Image -
- #define KSCrashField_CPUSubType "cpu_subtype"
- #define KSCrashField_CPUType "cpu_type"
- #define KSCrashField_ImageAddress "image_addr"
- #define KSCrashField_ImageVmAddress "image_vmaddr"
- #define KSCrashField_ImageSize "image_size"
- #define KSCrashField_ImageMajorVersion "major_version"
- #define KSCrashField_ImageMinorVersion "minor_version"
- #define KSCrashField_ImageRevisionVersion "revision_version"
- #define KSCrashField_ImageCrashInfoMessage "crash_info_message"
- #define KSCrashField_ImageCrashInfoMessage2 "crash_info_message2"
- #pragma mark - Memory -
- #define KSCrashField_Free "free"
- #define KSCrashField_Usable "usable"
- #pragma mark - Error -
- #define KSCrashField_Backtrace "backtrace"
- #define KSCrashField_Code "code"
- #define KSCrashField_CodeName "code_name"
- #define KSCrashField_CPPException "cpp_exception"
- #define KSCrashField_ExceptionName "exception_name"
- #define KSCrashField_Mach "mach"
- #define KSCrashField_NSException "nsexception"
- #define KSCrashField_Reason "reason"
- #define KSCrashField_Signal "signal"
- #define KSCrashField_Subcode "subcode"
- #define KSCrashField_UserReported "user_reported"
- #pragma mark - Process State -
- #define KSCrashField_LastDeallocedNSException "last_dealloced_nsexception"
- #define KSCrashField_ProcessState "process"
- #pragma mark - App Stats -
- #define KSCrashField_ActiveTimeSinceCrash "active_time_since_last_crash"
- #define KSCrashField_ActiveTimeSinceLaunch "active_time_since_launch"
- #define KSCrashField_AppActive "application_active"
- #define KSCrashField_AppInFG "application_in_foreground"
- #define KSCrashField_BGTimeSinceCrash "background_time_since_last_crash"
- #define KSCrashField_BGTimeSinceLaunch "background_time_since_launch"
- #define KSCrashField_LaunchesSinceCrash "launches_since_last_crash"
- #define KSCrashField_SessionsSinceCrash "sessions_since_last_crash"
- #define KSCrashField_SessionsSinceLaunch "sessions_since_launch"
- #pragma mark - Report -
- #define KSCrashField_Crash "crash"
- #define KSCrashField_Debug "debug"
- #define KSCrashField_Diagnosis "diagnosis"
- #define KSCrashField_ID "id"
- #define KSCrashField_ProcessName "process_name"
- #define KSCrashField_Report "report"
- #define KSCrashField_Timestamp "timestamp"
- #define KSCrashField_Version "version"
- #pragma mark Minimal
- #define KSCrashField_CrashedThread "crashed_thread"
- #pragma mark Standard
- #define KSCrashField_AppStats "application_stats"
- #define KSCrashField_BinaryImages "binary_images"
- #define KSCrashField_System "system"
- #define KSCrashField_Memory "memory"
- #define KSCrashField_Threads "threads"
- #define KSCrashField_User "user"
- #define KSCrashField_ConsoleLog "console_log"
- #pragma mark Incomplete
- #define KSCrashField_Incomplete "incomplete"
- #define KSCrashField_RecrashReport "recrash_report"
- #pragma mark System
- #define KSCrashField_AppStartTime "app_start_time"
- #define KSCrashField_AppUUID "app_uuid"
- #define KSCrashField_BootTime "boot_time"
- #define KSCrashField_BundleID "CFBundleIdentifier"
- #define KSCrashField_BundleName "CFBundleName"
- #define KSCrashField_BundleShortVersion "CFBundleShortVersionString"
- #define KSCrashField_BundleVersion "CFBundleVersion"
- #define KSCrashField_CPUArch "cpu_arch"
- #define KSCrashField_CPUType "cpu_type"
- #define KSCrashField_CPUSubType "cpu_subtype"
- #define KSCrashField_BinaryCPUType "binary_cpu_type"
- #define KSCrashField_BinaryCPUSubType "binary_cpu_subtype"
- #define KSCrashField_DeviceAppHash "device_app_hash"
- #define KSCrashField_Executable "CFBundleExecutable"
- #define KSCrashField_ExecutablePath "CFBundleExecutablePath"
- #define KSCrashField_Jailbroken "jailbroken"
- #define KSCrashField_KernelVersion "kernel_version"
- #define KSCrashField_Machine "machine"
- #define KSCrashField_Model "model"
- #define KSCrashField_OSVersion "os_version"
- #define KSCrashField_ParentProcessID "parent_process_id"
- #define KSCrashField_ProcessID "process_id"
- #define KSCrashField_ProcessName "process_name"
- #define KSCrashField_Size "size"
- #define KSCrashField_Storage "storage"
- #define KSCrashField_SystemName "system_name"
- #define KSCrashField_SystemVersion "system_version"
- #define KSCrashField_TimeZone "time_zone"
- #define KSCrashField_BuildType "build_type"
- #endif
|