Fix createdump --crashreport option error (#86137)
authorMike McLaughlin <mikem@microsoft.com>
Fri, 12 May 2023 17:01:21 +0000 (10:01 -0700)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 17:01:21 +0000 (10:01 -0700)
src/coreclr/debug/createdump/createdumpunix.cpp

index f39ab9b..0b97a3a 100644 (file)
@@ -24,7 +24,7 @@ CreateDump(const CreateDumpOptions& options)
 #endif
     TRACE("PAGE_SIZE %d\n", PAGE_SIZE);
 
-    if (options.CrashReport && (options.AppModel == AppModelType::SingleFile || options.AppModel != AppModelType::NativeAOT))
+    if (options.CrashReport && (options.AppModel == AppModelType::SingleFile || options.AppModel == AppModelType::NativeAOT))
     {
         printf_error("The app model does not support crash report generation\n");
         goto exit;