Ejemplo n.º 1
0
        /// <summary>
        /// Overrides the original *.so with the unstripped binary
        /// </summary>
        private async Task UnstripLibrary(SDCDModule module, string hash)
        {
            if (IsDebugFileAvailable(module, hash))
            {
                filesystem.Move(module.LocalPath, module.LocalPath + ".old");
                await processHandler.ExecuteProcessAndGetOutputAsync("eu-unstrip",
                                                                     $"-o {module.LocalPath} {module.LocalPath}.old {DebugFilePath(module.LocalPath, hash)}");

                filesystem.Delete(module.LocalPath + ".old");
            }
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Overrides the original *.so with the unstripped binary
		/// </summary>
		private async Task UnstripLibrary(SDCDModule module, string hash) {
			if (IsDebugFileAvailable(module, hash)) {
				string tempBinary = module.LocalPath + ".old";
				if (filesystem.GetFile(tempBinary).Exists) {
					filesystem.Delete(tempBinary);
				}
				filesystem.Move(module.LocalPath, tempBinary);
				await processHandler.ExecuteProcessAndGetOutputAsync("eu-unstrip",
					$"-o {module.LocalPath} {tempBinary} {DebugFilePath(module.LocalPath, hash)}");
				filesystem.Delete(tempBinary);
			}
		}