if (CLR_CMAKE_PLATFORM_UNIX)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-
+ if(CLR_CMAKE_PLATFORM_DARWIN)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -force_flat_namespace -std=c++14")
+ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+ endif(CLR_CMAKE_PLATFORM_DARWIN)
# this allows pretty-printers in gdb to work with clang
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG")
}
// Note, we guaranty waitpid hook works only during debuggee process execution, it aimed to work only for PAL's waitpid calls interception.
-extern "C" pid_t waitpid(pid_t pid, int *status, int options) noexcept
+extern "C" pid_t waitpid(pid_t pid, int *status, int options)
{
pid_t pidWaitRetval = netcoredbg::hook::waitpid(pid, status, options);
// Pass to managed helper code to read in-memory PEs/PDBs
// Returns the number of bytes read.
-int ReadMemoryForSymbols(ULONG64 address, char *buffer, int cb)
+int ReadMemoryForSymbols(uint64_t address, char *buffer, int cb)
{
// TODO: In-memory PDB?
// OSPageSize() for Linux/Windows already implemented in code.
//Console.WriteLine("Test SIGABRT, process Id = " + PID);\r
//kill(PID, 6); // SIGABRT\r
}\r
-\r
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))\r
+ {\r
+ Console.WriteLine("Test _exit()");\r
+ _exit(3);\r
+ }\r
//Console.WriteLine("Test return 3");\r
//return 3;\r
\r
//Console.WriteLine("Test SIGABRT, process Id = " + PID);\r
//kill(PID, 6); // SIGABRT\r
}\r
-\r
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))\r
+ {\r
+ Console.WriteLine("Test _exit()");\r
+ _exit(3);\r
+ }\r
//Console.WriteLine("Test return 3");\r
//return 3;\r
\r