summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-06-03 09:53:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-06-03 22:43:06 +0900
commitb59a439517b842a8f74ad7f149ee13c3a3f1cc53 (patch)
treeb74a89cbc82d51843bce427b02e57f80e47dcf33
parent883def20d85eca8b527045381363b289053939e3 (diff)
downloadkdbg-b59a439517b842a8f74ad7f149ee13c3a3f1cc53.tar.gz
kdbg-b59a439517b842a8f74ad7f149ee13c3a3f1cc53.zip
Fixed building with -DWITH_TRACE_OUTPUT=ON. This resolves issue #6.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--kdbg/gdbdriver.cpp2
-rw-r--r--kdbg/mydebug.h2
-rw-r--r--kdbg/sourcewnd.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp
index 068a4d9..58464ec 100644
--- a/kdbg/gdbdriver.cpp
+++ b/kdbg/gdbdriver.cpp
@@ -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
diff --git a/kdbg/mydebug.h b/kdbg/mydebug.h
index c9f568c..93fbac8 100644
--- a/kdbg/mydebug.h
+++ b/kdbg/mydebug.h
@@ -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
diff --git a/kdbg/sourcewnd.cpp b/kdbg/sourcewnd.cpp
index 5490666..8d0699c 100644
--- a/kdbg/sourcewnd.cpp
+++ b/kdbg/sourcewnd.cpp
@@ -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;