forked from qt-creator/qt-creator
Android: Don't read from adb logcat while PID isn't known
Otherwise we throw away important parts of the output. Change-Id: I7ab6989c19660bcbb53d6ff61eda62878044ded2 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -183,6 +183,7 @@ void AndroidRunner::checkPID()
|
|||||||
emit remoteProcessStarted(-1, -1);
|
emit remoteProcessStarted(-1, -1);
|
||||||
}
|
}
|
||||||
m_wasStarted = true;
|
m_wasStarted = true;
|
||||||
|
logcatReadStandardOutput();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -357,6 +358,8 @@ void AndroidRunner::logcatReadStandardError()
|
|||||||
|
|
||||||
void AndroidRunner::logcatReadStandardOutput()
|
void AndroidRunner::logcatReadStandardOutput()
|
||||||
{
|
{
|
||||||
|
if (m_processPID == -1)
|
||||||
|
return;
|
||||||
QList<QByteArray> lines = m_adbLogcatProcess.readAllStandardOutput().split('\n');
|
QList<QByteArray> lines = m_adbLogcatProcess.readAllStandardOutput().split('\n');
|
||||||
// lines always contains at least one item
|
// lines always contains at least one item
|
||||||
lines[0].prepend(m_logcat);
|
lines[0].prepend(m_logcat);
|
||||||
|
|||||||
Reference in New Issue
Block a user