summaryrefslogtreecommitdiff
path: root/src/ToolBox/SOS
diff options
context:
space:
mode:
authorRahul Kumar <rahku@microsoft.com>2016-07-08 15:03:41 -0700
committerRahul Kumar <rahku@microsoft.com>2016-07-08 15:03:41 -0700
commitef6ad57a343f8796f7616926348de3baf0370957 (patch)
tree55a7ae5f39d65b50d51caa55534d8c9da3f0009c /src/ToolBox/SOS
parent1eb421cefab252f69dd7b54c03eed1c3011ee44c (diff)
downloadcoreclr-ef6ad57a343f8796f7616926348de3baf0370957.tar.gz
coreclr-ef6ad57a343f8796f7616926348de3baf0370957.tar.bz2
coreclr-ef6ad57a343f8796f7616926348de3baf0370957.zip
Fix SOS bpmd for windows
Diffstat (limited to 'src/ToolBox/SOS')
-rw-r--r--src/ToolBox/SOS/Strike/strike.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ToolBox/SOS/Strike/strike.cpp b/src/ToolBox/SOS/Strike/strike.cpp
index 024293c2a4..60a8e2f9d6 100644
--- a/src/ToolBox/SOS/Strike/strike.cpp
+++ b/src/ToolBox/SOS/Strike/strike.cpp
@@ -7116,9 +7116,13 @@ DECLARE_API(bpmd)
// did we get dll and type name or file:line#? Search for a colon in the first arg
// to see if it is in fact a file:line#
CHAR* pColon = strchr(DllName.data, ':');
+#ifndef FEATURE_PAL
+ if (FAILED(g_ExtSymbols->GetModuleByModuleName(MAIN_CLR_MODULE_NAME_A, 0, NULL, NULL))) {
+#else
if (FAILED(g_ExtSymbols->GetModuleByModuleName(MAIN_CLR_DLL_NAME_A, 0, NULL, NULL))) {
- ExtOut("File name:Line number not supported\n");
- fBadParam = true;
+#endif
+ ExtOut("%s not loaded yet\n", MAIN_CLR_DLL_NAME_A);
+ return Status;
}
if(NULL != pColon)