diff --git a/handler/win/crashy_test_program.cc b/handler/win/crashy_test_program.cc index 990929bf..9c8adbbd 100644 --- a/handler/win/crashy_test_program.cc +++ b/handler/win/crashy_test_program.cc @@ -101,7 +101,7 @@ DWORD WINAPI NullThreadProc(void* param) { return 0; } -// Creates a suspended background thread, and sets EDI/RDI to point at +// Creates a suspended background thread, and sets EDI/RDI/X17 to point at // g_test_memory so we can confirm it's available in the minidump. bool CreateThreadWithRegisterPointingToTestMemory() { HANDLE thread = CreateThread( @@ -121,6 +121,8 @@ bool CreateThreadWithRegisterPointingToTestMemory() { context.Rdi = reinterpret_cast(g_test_memory); #elif defined(ARCH_CPU_X86) context.Edi = reinterpret_cast(g_test_memory); +#elif defined(ARCH_CPU_ARM64) + context.X17 = reinterpret_cast(g_test_memory); #endif if (!SetThreadContext(thread, &context)) { PLOG(ERROR) << "SetThreadContext";