Debugger: Use hex instead of base64 encoding for CDB debuggee output

Simplifies code.

Change-Id: Iaabb4b32f7b351d04b512cc132f990a1061da3b5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
hjk
2015-12-14 11:39:36 +01:00
committed by David Schulz
parent 44bb3cb4c3
commit d72cb777ec
4 changed files with 4 additions and 11 deletions

View File

@@ -2237,7 +2237,9 @@ void CdbEngine::handleExtensionMessage(char t, int token, const QByteArray &what
}
if (what == "debuggee_output") {
showMessage(StringFromBase64EncodedUtf16(message), AppOutput);
const QByteArray decoded = QByteArray::fromHex(message);
showMessage(QString::fromUtf16(reinterpret_cast<const ushort *>(decoded.data()), decoded.size() / 2),
AppOutput);
return;
}