From e47967312e65e7620774ecc797a070dacc064afb Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Mon, 8 Dec 2008 11:58:36 +0100 Subject: [PATCH] compile fix --- src/plugins/debugger/gdbengine.cpp | 2 ++ src/plugins/debugger/watchwindow.h | 2 +- tests/manual/gdbdebugger/simple/app.cpp | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp index 1802c018001..9336981b128 100644 --- a/src/plugins/debugger/gdbengine.cpp +++ b/src/plugins/debugger/gdbengine.cpp @@ -1271,6 +1271,7 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data) if (isStoppedReason(reason) || reason.isEmpty()) { // Need another round trip if (reason == "breakpoint-hit") { + q->showStatusMessage(tr("Stopped at breakpoint."), -1); GdbMi frame = data.findChild("frame"); //qDebug() << frame.toString(); m_currentFrame = frame.findChild("addr").data() + '%' + @@ -1282,6 +1283,7 @@ void GdbEngine::handleAsyncOutput(const GdbMi &data) QVariant var = QVariant::fromValue<GdbMi>(data); sendCommand("p 0", GdbAsyncOutput2, var); // dummy } else { + q->showStatusMessage(tr("Stopped. %1").arg(reason), -1); handleAsyncOutput2(data); } return; diff --git a/src/plugins/debugger/watchwindow.h b/src/plugins/debugger/watchwindow.h index 33aafe1d59b..c292bebb5f6 100644 --- a/src/plugins/debugger/watchwindow.h +++ b/src/plugins/debugger/watchwindow.h @@ -78,7 +78,7 @@ private: void editItem(const QModelIndex &idx); void reset(); /* reimpl */ - void modelResetHelper(const QModelIndex &idx); + void resetHelper(const QModelIndex &idx); bool m_alwaysResizeColumnsToContents; Type m_type; diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 4a1ec67e7ab..958c8985b05 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -785,8 +785,13 @@ int main(int argc, char *argv[]) testVariant3(); testVector(); testVectorOfList(); + + + *(int *)0 = 0; + testObject(argc, argv); + //QColor color(255,128,10); //QFont font; -- GitLab