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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 3 years ago
parent 883def20d8
commit b59a439517
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -902,7 +902,7 @@ static ExprValue* parseVar(const char*& s)
while (isspace(*p)) while (isspace(*p))
p++; p++;
if (*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; return 0;
} }
// skip the '=' and more whitespace // skip the '=' and more whitespace

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

@ -275,7 +275,7 @@ void SourceWindow::updateLineItems(const KDebugger* dbg)
for (KDebugger::BrkptROIterator bp = dbg->breakpointsBegin(); bp != dbg->breakpointsEnd(); ++bp) for (KDebugger::BrkptROIterator bp = dbg->breakpointsBegin(); bp != dbg->breakpointsEnd(); ++bp)
{ {
if (fileNameMatches(bp->fileName)) { 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; int i = bp->lineNo;
if (i < 0 || i >= int(m_sourceCode.size())) if (i < 0 || i >= int(m_sourceCode.size()))
continue; continue;

Loading…
Cancel
Save