diff options
author | Sven Gothel <[email protected]> | 2015-07-14 07:12:13 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-07-14 07:12:13 +0200 |
commit | a352ecb7e63304034ac93332cf0c4d9183df867e (patch) | |
tree | 56d7754f7cfff8d728ced75c2a05d6fcd54dcae5 /LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp | |
parent | 450aa6f7df9e67dd256b86f94e65eaf707032aad (diff) |
Fix compilation / linkage of 0.5.0.1 HEADLESS_APP mode
Tested: GNU/Linux and OSX
Diffstat (limited to 'LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp')
-rw-r--r-- | LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp b/LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp index ea39fb0..34fdd5f 100644 --- a/LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp +++ b/LibOVRKernel/Src/Kernel/OVR_DebugHelp.cpp @@ -21,6 +21,9 @@ limitations under the License. ************************************************************************************/ #include "OVR_DebugHelp.h" + +#if !defined(HEADLESS_APP) + #include "OVR_Types.h" #include "OVR_UTF8Util.h" #include "OVR_Atomic.h" @@ -4099,3 +4102,69 @@ int GUIExceptionListener::HandleException(uintptr_t userValue, OVR_RESTORE_MSVC_WARNING() + +#else /* !defined(HEADLESS_APP) */ + +namespace OVR { + // Exits the process with the given exit code. + void ExitProcess(intptr_t processReturnValue) + { + exit((int)processReturnValue); + } + bool OVRIsDebuggerPresent() + { + return false; + } + void ExceptionHandler::ReportDeadlock(const char* threadName, + const char* organizationName, + const char* applicationName) + { + } + + + bool SymbolLookup::Initialize() + { + return true; + } + + bool SymbolLookup::IsInitialized() + { + return true; + } + + void SymbolLookup::Shutdown() + { + } + + bool SymbolLookup::Refresh() + { + return true; + } + + size_t SymbolLookup::GetBacktrace(void* addressArray[], size_t addressArrayCapacity, size_t skipCount, void* platformThreadContext, OVR::ThreadSysId threadSysIdHelp) + { + return 0; + } + bool SymbolLookup::LookupSymbol(uint64_t address, SymbolInfo& symbolInfo) + { + return false; + } + bool SymbolLookup::LookupSymbols(uint64_t* addressArray, SymbolInfo* pSymbolInfoArray, size_t arraySize) + { + return false; + } + SymbolLookup::SymbolLookup() { } + SymbolLookup::~SymbolLookup() { } + bool SymbolLookup::ReportThreadCallstacks(OVR::String& sOutput, size_t skipCount) + { + sOutput.Clear(); + return true; + } + bool SymbolLookup::ReportModuleInformation(OVR::String& sOutput) + { + sOutput.Clear(); + return true; + } +} // namespace OVR + +#endif /* !defined(HEADLESS_APP) */ |