Commit fc565a2d authored by Alex Smith's avatar Alex Smith

removed debug information

parent f7c9fee8
......@@ -4248,31 +4248,21 @@ portwine_launch () {
if [[ -z "${exe_pid}" || ! -e "/proc/${exe_pid}" ]]; then
processes=$("${WINEDIR}/bin/winedbg" --command "info proc" 2>/dev/null)
exe_path=$(echo "${processes}" | grep -oP "(?<=\s)'[^']+'" | sed "s/^'//;s/'$//" | grep -Ev "${WINEPROCESSES}" | head -n 1)
echo "${processes}" > "${PORT_WINE_TMP_PATH}/processes"
if [[ -n "${exe_path}" ]]; then
unset exe_pid
isCmdline=FALSE
isMaps=FALSE
for pid in $(ls -lr /proc/*/exe | grep -E 'wine(64)?-preloader' | awk -F/ '{print $3}'); do
if [[ "$(tr '\0' ' ' < "/proc/${pid}/cmdline" 2>/dev/null)" == *"${exe_path}"* ]]; then
exe_pid="${pid}"
isCmdline=TRUE
elif grep -q "${exe_path}" "/proc/${pid}/maps" 2>/dev/null; then
exe_pid="${pid}"
isMaps=TRUE
else
continue
fi
break
done
echo "find proc: ${exe_path} [${exe_pid}|${isCmdline}|${isMaps}]"
elif [[ -n "${exe_pid}" ]]; then
echo "end proc: ${exe_pid}"
break;
break
fi
echo "update processes list"
else
echo "process isset: ${exe_pid}"
fi
done
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment