diff options
author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2020-12-09 18:39:04 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2020-12-14 12:27:23 +0000 |
commit | a55b7c60947c7bdc356b6c1daceea210d8eae4c5 (patch) | |
tree | e5c135425172f759ae83c7c738039e3967796b02 | |
parent | e2a2af5d18525a841634aa7f3ef9777082c4bc8e (diff) | |
download | qt-creator-a55b7c60947c7bdc356b6c1daceea210d8eae4c5.tar.gz |
clean up output printing in dumpBacktrace()
the first call to readAllStandardOutput() made no sense, as the buffer
would be empty at that time anyway.
Change-Id: Ie306745a94f98ce358e4af373169d0a5b0a82d23
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/plugins/debugger/shared/backtrace.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/debugger/shared/backtrace.cpp b/src/plugins/debugger/shared/backtrace.cpp index 74e69b3143..bbd121504f 100644 --- a/src/plugins/debugger/shared/backtrace.cpp +++ b/src/plugins/debugger/shared/backtrace.cpp @@ -55,12 +55,10 @@ void dumpBacktrace(int maxdepth) for (int i = 0; i < qMin(size, maxdepth); i++) proc.write("0x" + QByteArray::number(quintptr(bt[i]), 16) + '\n'); proc.closeWriteChannel(); + proc.waitForFinished(); QByteArray out = proc.readAllStandardOutput(); qDebug() << QCoreApplication::arguments().at(0); qDebug() << out; - proc.waitForFinished(); - out = proc.readAllStandardOutput(); - qDebug() << out; #endif } |