endfunction()
if(CLR_CMAKE_PLATFORM_UNIX)
- if(CLR_CMAKE_PLATFORM_UBUNTU_LINUX)
+ if(CLR_CMAKE_PLATFORM_LINUX)
if(CLR_CMAKE_PLATFORM_UNIX_AMD64)
add_subdirectory(debug/createdump)
endif(CLR_CMAKE_PLATFORM_UNIX_AMD64)
- endif(CLR_CMAKE_PLATFORM_UBUNTU_LINUX)
+ endif(CLR_CMAKE_PLATFORM_LINUX)
add_subdirectory(ToolBox/SOS/Strike)
//
int __cdecl main(const int argc, const char* argv[])
{
- const char* dumpPathTemplate = "/tmp/coredump.%lu";
+ const char* dumpPathTemplate = "/tmp/coredump.%d";
char* diagnostics = getenv("COMPlus_CreateDumpDiagnostics");
g_diagnostics = diagnostics != nullptr && strcmp(diagnostics, "1") == 0;
}
pid = _atoi64(argv[1]);
- //if (!CreateDump(argv[0], dumpPathTemplate, pid, MiniDumpWithPrivateReadWriteMemory))
if (!CreateDump(argv[0], dumpPathTemplate, pid, MiniDumpNormal))
{
exitCode = -1;
exit:
PAL_TerminateEx(exitCode);
return exitCode;
-}
\ No newline at end of file
+}