summaryrefslogtreecommitdiff
path: root/src/dlls/mscoree/unixinterface.cpp
diff options
context:
space:
mode:
authorchunseoklee <chunseoklee@naver.com>2016-11-03 07:18:53 +0900
committerMike McLaughlin <mikem@microsoft.com>2016-11-02 15:18:53 -0700
commit8a05dcd07441b8779ec5b9eff9bdcb90f24fcb8e (patch)
tree6ffd44d110da60252e2155a0872ff9843631fa2e /src/dlls/mscoree/unixinterface.cpp
parentb4a5de28efa0fdde7c74287cda31b658e11f7ebc (diff)
downloadcoreclr-8a05dcd07441b8779ec5b9eff9bdcb90f24fcb8e.tar.gz
coreclr-8a05dcd07441b8779ec5b9eff9bdcb90f24fcb8e.tar.bz2
coreclr-8a05dcd07441b8779ec5b9eff9bdcb90f24fcb8e.zip
Suppress SOS.NETCore.dll error msg in release mode (#6975)
Suppress error msg when running coreclr without SOS.NETCore.dll in release mode
Diffstat (limited to 'src/dlls/mscoree/unixinterface.cpp')
-rw-r--r--src/dlls/mscoree/unixinterface.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/dlls/mscoree/unixinterface.cpp b/src/dlls/mscoree/unixinterface.cpp
index 4e75b33486..edd361c0c2 100644
--- a/src/dlls/mscoree/unixinterface.cpp
+++ b/src/dlls/mscoree/unixinterface.cpp
@@ -247,22 +247,23 @@ int coreclr_initialize(
host.SuppressRelease();
*hostHandle = host;
#ifdef FEATURE_GDBJIT
-
- hr = coreclr_create_delegate(*hostHandle,
- *domainId,
- "SOS.NETCore",
- "SOS.SymbolReader",
- "GetInfoForMethod",
- (void**)&getInfoForMethodDelegate);
-
- if (!SUCCEEDED(hr))
+ HRESULT createDelegateResult;
+ createDelegateResult = coreclr_create_delegate(*hostHandle,
+ *domainId,
+ "SOS.NETCore",
+ "SOS.SymbolReader",
+ "GetInfoForMethod",
+ (void**)&getInfoForMethodDelegate);
+
+#if defined(_DEBUG)
+ if (!SUCCEEDED(createDelegateResult))
{
fprintf(stderr,
"Can't create delegate for 'SOS.SymbolReader.GetInfoForMethod' "
- "method - status: 0x%08x\n", hr);
+ "method - status: 0x%08x\n", createDelegateResult);
}
+#endif // _DEBUG
- hr = S_OK; // We don't need to fail if we can't create delegate
#endif
}
return hr;