From 9b4ef452a37e161d7bd82c80fda1d3ab779813ec Mon Sep 17 00:00:00 2001 From: Daniel Molkentin <daniel.molkentin@nokia.com> Date: Mon, 8 Jun 2009 16:26:07 +0200 Subject: [PATCH] Fix behavior of debug output via cdb: Add newline to every complete output. This matches the behavior of the run version where the debug output is not actually passed through a debugger. Reviewed-by: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com> --- src/plugins/debugger/cdb/cdbdebugoutput.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/cdb/cdbdebugoutput.cpp b/src/plugins/debugger/cdb/cdbdebugoutput.cpp index e9c2dbe4b29..a4564b3c3bb 100644 --- a/src/plugins/debugger/cdb/cdbdebugoutput.cpp +++ b/src/plugins/debugger/cdb/cdbdebugoutput.cpp @@ -135,8 +135,10 @@ CdbDebugOutput::CdbDebugOutput() { } -void CdbDebugOutput::output(ULONG mask, const QString &msg) +void CdbDebugOutput::output(ULONG mask, const QString &_msg) { + QString msg = _msg + '\n'; + if (debugCDB > 1) qDebug() << Q_FUNC_INFO << "\n " << msg; -- GitLab