File indexing completed on 2026-05-10 08:42:53
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_TARGET_APPLEARM64EXCEPTIONCLASS_H
0010 #define LLDB_TARGET_APPLEARM64EXCEPTIONCLASS_H
0011
0012 #include <cstdint>
0013
0014 namespace lldb_private {
0015
0016 enum class AppleArm64ExceptionClass : unsigned {
0017 #define APPLE_ARM64_EXCEPTION_CLASS(Name, Code) Name = Code,
0018 #include "AppleArm64ExceptionClass.def"
0019 };
0020
0021
0022 inline AppleArm64ExceptionClass getAppleArm64ExceptionClass(uint32_t esr) {
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 return static_cast<AppleArm64ExceptionClass>(esr >> 26);
0036 }
0037
0038 inline const char *toString(AppleArm64ExceptionClass EC) {
0039 switch (EC) {
0040 #define APPLE_ARM64_EXCEPTION_CLASS(Name, Code) \
0041 case AppleArm64ExceptionClass::Name: \
0042 return #Name;
0043 #include "AppleArm64ExceptionClass.def"
0044 }
0045 return "Unknown Exception Class";
0046 }
0047
0048 }
0049
0050 #endif