Skip to content

Commit

Permalink
Disable MacCatalyst too in PalCreateDump.cpp (dotnet#89665)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger authored Jul 29, 2023
1 parent 6f9792f commit 45354ee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/coreclr/nativeaot/Runtime/unix/PalCreateDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include <minipal/utils.h>
#include <generatedumpflags.h>

#if !defined(HOST_IOS) && !defined(HOST_TVOS)
#if !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)

// Crash dump generating program arguments. MAX_ARGV_ENTRIES is the max number
// of entries if every createdump option/argument is passed.
Expand Down Expand Up @@ -334,7 +334,7 @@ CreateCrashDump(
return true;
}

#endif // !defined(HOST_IOS) && !defined(HOST_TVOS)
#endif // !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)

/*++
Function:
Expand All @@ -352,7 +352,7 @@ CreateCrashDump(
void
PalCreateCrashDumpIfEnabled(int signal, siginfo_t* siginfo, void* exceptionRecord)
{
#if !defined(HOST_IOS) && !defined(HOST_TVOS)
#if !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)
// If enabled, launch the create minidump utility and wait until it completes
if (g_argvCreateDump[0] != nullptr)
{
Expand Down Expand Up @@ -438,7 +438,7 @@ PalCreateCrashDumpIfEnabled(int signal, siginfo_t* siginfo, void* exceptionRecor
free(signalAddressArg);
free(exceptionRecordArg);
}
#endif // !defined(HOST_IOS) && !defined(HOST_TVOS)
#endif // !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)
}

void
Expand Down Expand Up @@ -482,7 +482,7 @@ PalGenerateCoreDump(
char* errorMessageBuffer,
int cbErrorMessageBuffer)
{
#if !defined(HOST_IOS) && !defined(HOST_TVOS)
#if !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)
const char* argvCreateDump[MAX_ARGV_ENTRIES];
if (dumpType <= DumpTypeUnknown || dumpType > DumpTypeMax)
{
Expand All @@ -500,7 +500,7 @@ PalGenerateCoreDump(
return result;
#else
return false;
#endif // !defined(HOST_IOS) && !defined(HOST_TVOS)
#endif // !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)
}

/*++
Expand All @@ -519,7 +519,7 @@ Return
bool
PalCreateDumpInitialize()
{
#if !defined(HOST_IOS) && !defined(HOST_TVOS)
#if !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)
bool enabled = false;
RhConfig::Environment::TryGetBooleanValue("DbgEnableMiniDump", &enabled);
if (enabled)
Expand Down Expand Up @@ -614,7 +614,7 @@ PalCreateDumpInitialize()
return false;
}
}
#endif // !defined(HOST_IOS) && !defined(HOST_TVOS)
#endif // !defined(HOST_MACCATALYST) && !defined(HOST_IOS) && !defined(HOST_TVOS)

return true;
}

0 comments on commit 45354ee

Please sign in to comment.