@@ -1034,7 +1034,7 @@ SignalContext::WriteFlag SignalContext::GetWriteFlag() const {
1034
1034
1035
1035
void SignalContext::DumpAllRegisters (void *context) {
1036
1036
CONTEXT *ctx = (CONTEXT *)context;
1037
- # if defined(__M_X64 )
1037
+ # if defined(_M_X64 )
1038
1038
Report (" Register values:\n " );
1039
1039
Printf (" rax = %llx " , ctx->Rax );
1040
1040
Printf (" rbx = %llx " , ctx->Rbx );
@@ -1068,6 +1068,41 @@ void SignalContext::DumpAllRegisters(void *context) {
1068
1068
Printf (" ebp = %lx " , ctx->Ebp );
1069
1069
Printf (" esp = %lx " , ctx->Esp );
1070
1070
Printf (" \n " );
1071
+ # elif defined(_M_ARM64)
1072
+ Report (" Register values:\n " );
1073
+ Printf (" x0 = %llx " , ctx->X0 );
1074
+ Printf (" x1 = %llx " , ctx->X1 );
1075
+ Printf (" x2 = %llx " , ctx->X2 );
1076
+ Printf (" x3 = %llx " , ctx->X3 );
1077
+ Printf (" x4 = %llx " , ctx->X4 );
1078
+ Printf (" x5 = %llx " , ctx->X5 );
1079
+ Printf (" x6 = %llx " , ctx->X6 );
1080
+ Printf (" x7 = %llx " , ctx->X7 );
1081
+ Printf (" x8 = %llx " , ctx->X8 );
1082
+ Printf (" x9 = %llx " , ctx->X9 );
1083
+ Printf (" x10 = %llx " , ctx->X10 );
1084
+ Printf (" x11 = %llx " , ctx->X11 );
1085
+ Printf (" x12 = %llx " , ctx->X12 );
1086
+ Printf (" x13 = %llx " , ctx->X13 );
1087
+ Printf (" x14 = %llx " , ctx->X14 );
1088
+ Printf (" x15 = %llx " , ctx->X15 );
1089
+ Printf (" x16 = %llx " , ctx->X16 );
1090
+ Printf (" x17 = %llx " , ctx->X17 );
1091
+ Printf (" x18 = %llx " , ctx->X18 );
1092
+ Printf (" x19 = %llx " , ctx->X19 );
1093
+ Printf (" x20 = %llx " , ctx->X20 );
1094
+ Printf (" x21 = %llx " , ctx->X21 );
1095
+ Printf (" x22 = %llx " , ctx->X22 );
1096
+ Printf (" x23 = %llx " , ctx->X23 );
1097
+ Printf (" x24 = %llx " , ctx->X24 );
1098
+ Printf (" x25 = %llx " , ctx->X25 );
1099
+ Printf (" x26 = %llx " , ctx->X26 );
1100
+ Printf (" x27 = %llx " , ctx->X27 );
1101
+ Printf (" x28 = %llx " , ctx->X28 );
1102
+ Printf (" x29 = %llx " , ctx->X29 );
1103
+ Printf (" x30 = %llx " , ctx->X30 );
1104
+ Printf (" x31 = %llx " , ctx->X31 );
1105
+ Printf (" \n " );
1071
1106
# else
1072
1107
// TODO
1073
1108
(void )ctx;
0 commit comments