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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 3 years ago
parent 883def20d8
commit 5a533298b1
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() << (TQString() + (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