Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-02-13 18:36:44 +0300
committerGitHub <noreply@github.com>2017-02-13 18:36:44 +0300
commit7c557aeb9e0c21b9ca2ef75936bcdc1151760583 (patch)
treeb63c35c681e0131a066e6f8f1949abf6a09c48d7 /src/Native/Runtime/unix
parentda20fe0d9874228020d19e6d3334c2e94df033e1 (diff)
Print message for stack oveflow (#2737)
Diffstat (limited to 'src/Native/Runtime/unix')
-rw-r--r--src/Native/Runtime/unix/PalRedhawkUnix.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Native/Runtime/unix/PalRedhawkUnix.cpp b/src/Native/Runtime/unix/PalRedhawkUnix.cpp
index c9f8ea4a8..1c2fa1d2b 100644
--- a/src/Native/Runtime/unix/PalRedhawkUnix.cpp
+++ b/src/Native/Runtime/unix/PalRedhawkUnix.cpp
@@ -697,6 +697,13 @@ REDHAWK_PALEXPORT HANDLE REDHAWK_PALAPI PalGetModuleHandleFromPointer(_In_ void*
return moduleHandle;
}
+REDHAWK_PALEXPORT void PalPrintFatalError(const char* message)
+{
+ // Write the message using lowest-level OS API available. This is used to print the stack overflow
+ // message, so there is not much that can be done here.
+ write(STDERR_FILENO, message, sizeof(message));
+}
+
bool QueryCacheSize()
{
bool success = true;