ios: Fix testCrashWithDyldErrorString on arm64.

Fixed when running a simulator on arm64 Apple Silicon.

Change-Id: I6a6e917b4d5ff009683214794fe6a6af833be3c0
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3758362
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
Justin Cohen 2022-07-13 13:15:36 -04:00 committed by Crashpad LUCI CQ
parent 7a622b2f6b
commit 1424632592

View File

@ -286,7 +286,13 @@
return; return;
} }
[rootObject_ crashWithDyldErrorString]; [rootObject_ crashWithDyldErrorString];
#if defined(ARCH_CPU_X86_64)
[self verifyCrashReportException:EXC_BAD_INSTRUCTION]; [self verifyCrashReportException:EXC_BAD_INSTRUCTION];
#elif defined(ARCH_CPU_ARM64)
[self verifyCrashReportException:EXC_BREAKPOINT];
#else
#error Port to your CPU architecture
#endif
NSArray* vector = [rootObject_ getAnnotations][@"vector"]; NSArray* vector = [rootObject_ getAnnotations][@"vector"];
// This message is set by dyld-353.2.1/src/ImageLoaderMachO.cpp // This message is set by dyld-353.2.1/src/ImageLoaderMachO.cpp
// ImageLoaderMachO::doInitialization(). // ImageLoaderMachO::doInitialization().