Changed the path of diagnostics tool (#455) accepted/tizen/unified/20221229.165944
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Thu, 29 Dec 2022 01:59:31 +0000 (10:59 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 29 Dec 2022 01:59:31 +0000 (10:59 +0900)
Change-Id: I68c3697ad22d727ff6b4cbdfdc875a1378321f6c

NativeLauncher/launcher/exec/corerun.cc

index 939d543..29b7234 100644 (file)
@@ -66,7 +66,7 @@ int main(int argc, const char* argv[]) {
        }
 
        std::string clrFilesPath(CLR_PATH);
-       std::string toolDllsPath(TOOL_PATH);
+       std::string toolDllsPath(clrFilesPath + "/SOS");
 
        std::string managedAssemblyPath;
        std::string additionalProbingPath;
@@ -116,9 +116,14 @@ int main(int argc, const char* argv[]) {
                        _SERR("This command is not currently supported.");
                        return -1;
                } else {
-                       managedAssemblyPath = toolDllsPath + "/dotnet-" + arg + ".dll";
-
-                       if (!isFile(managedAssemblyPath)) {
+                       std::string toolDll = "/dotnet-" + arg + ".dll";
+                       std::string searchToolPath1 = toolDllsPath + toolDll;
+                       std::string searchToolPath2 = std::string(TOOL_PATH) + toolDll;
+                       if (isFile(searchToolPath1)) {
+                               managedAssemblyPath = searchToolPath1;
+                       } else if (isFile(searchToolPath2)) {
+                               managedAssemblyPath = searchToolPath2;
+                       } else {
                                _SERR(
                                        "Could not execute because dotnet-%s does not exist.\n"
                                        "Go to https://developer.samsung.com/tizen to learn how to install tools.\n", argv[0]);