aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggersourcepathmappingwidget.cpp
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2021-08-07 11:41:23 +0200
committerJarek Kobus <[email protected]>2021-08-09 07:51:31 +0000
commitd22505c41f446a3b8d25c81b8f4faa89b078ebcf (patch)
tree53020ce11be12e958126ac91ecba0ed622916090 /src/plugins/debugger/debuggersourcepathmappingwidget.cpp
parent25f585227fe314775f87cd39ae413ac19a8cf627 (diff)
Use refactored ProcessMode
This patch needs to be applied together with the parent change. There are 3 basic cases: 1. The user doesn't write anything to the write channel: You don't need to call closeWriteChannel manually anymore. By default the QtcProcess you create is in ProcessMode::Reader mode. Internally it opens the process in ReadOnly mode and closes the write channel just after starting. 2. The user writes some initial data (after being started) and then closes the write channel: All what is needed now it to set the write data (QtcProcess::setWriteData) before calling start. You also use the default ProcessMode::Reader mode. Internally it opens the process in ReadWrite mode and writes the writeData asynchonously when the process already started. After writing the data it closes the write channel automatically. 3. The user writes the data also after calling start. All you need now is to create a process with ProcessMode::Writer mode. In this mode the write channel is not closed. Internally it opens the process in ReadWrite mode as some writers also read the data from the process. All the code base is adapted here to the above rules. Change-Id: Id103019d1d71a3012fd1eade226fe96b9aaa48c2 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggersourcepathmappingwidget.cpp')
-rw-r--r--src/plugins/debugger/debuggersourcepathmappingwidget.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp
index 92858969ec3..4929f40c0a3 100644
--- a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp
+++ b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp
@@ -451,7 +451,6 @@ static QString findQtInstallPath(const FilePath &qmakePath)
qPrintable(proc.errorString()));
return QString();
}
- proc.closeWriteChannel();
if (!proc.waitForFinished()) {
proc.stopProcess();
qWarning("%s: Timeout running '%s'.", Q_FUNC_INFO, qPrintable(qmakePath.toString()));