Change the ownership of the pdb file
authorj-h.choi <j-h.choi@samsung.com>
Mon, 6 Apr 2020 01:40:13 +0000 (10:40 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Wed, 8 Apr 2020 00:35:45 +0000 (09:35 +0900)
Change-Id: Id3a6d3a3272b5f140b11c0f49004861c66d61cc8

NativeLauncher/tool/ni_common.cc

index 0e60025..05b0cfc 100644 (file)
@@ -275,6 +275,8 @@ static ni_error_e crossgen(const std::string& dllPath, const std::string& appPat
                                if (isFileExist(absPdbPath) && (absPdbPath != pdbFilePath)) {
                                        if (!copyFile(absPdbPath, pdbFilePath)) {
                                                fprintf(stderr, "Failed to copy a .pdb file\n");
+                                       } else {
+                                               copySmackAndOwnership(absPdbPath, pdbFilePath);
                                        }
                                }
 #ifdef UNIQUE_DEFAULT_BASE_ADDR_SUPPORT