Fixed building with -DWITH_TRACE_OUTPUT=ON. This resolves issue #6.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b59a439517)
r14.0.x
Michele Calgaro 4 years ago
parent 10b6163011
commit 498c16c6f1
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -902,7 +902,7 @@ static ExprValue* parseVar(const char*& s)
while (isspace(*p))
p++;
if (*p != '=') {
TRACE(TQString().sprintf("parse error: = not found after %s", (const char*)name));
TRACE(TQString().sprintf("parse error: = not found after %s", name));
return 0;
}
// skip the '=' and more whitespace

@ -19,7 +19,7 @@
#endif
#ifdef WANT_TRACE_OUTPUT
# define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
# define TRACE(x) (kdDebug() << (x) << endl)
#else
# define TRACE(x) ((void)0)
#endif

@ -275,7 +275,7 @@ void SourceWindow::updateLineItems(const KDebugger* dbg)
for (KDebugger::BrkptROIterator bp = dbg->breakpointsBegin(); bp != dbg->breakpointsEnd(); ++bp)
{
if (fileNameMatches(bp->fileName)) {
TRACE(TQString().sprintf("updating %s:%d", bp->fileName.data(), bp->lineNo));
TRACE(TQString().sprintf("updating %s:%d", bp->fileName, bp->lineNo));
int i = bp->lineNo;
if (i < 0 || i >= int(m_sourceCode.size()))
continue;

Loading…
Cancel
Save