diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-02-13 18:36:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 18:36:44 +0300 |
commit | 7c557aeb9e0c21b9ca2ef75936bcdc1151760583 (patch) | |
tree | b63c35c681e0131a066e6f8f1949abf6a09c48d7 /src/Native/Runtime/unix | |
parent | da20fe0d9874228020d19e6d3334c2e94df033e1 (diff) |
Print message for stack oveflow (#2737)
Diffstat (limited to 'src/Native/Runtime/unix')
-rw-r--r-- | src/Native/Runtime/unix/PalRedhawkUnix.cpp | 7 |
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; |