diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index f8e6d602774..fa6810d8400 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3732,19 +3732,6 @@ void GdbEngine::updateWatchItem(WatchItem *item) updateLocalsPython(params); } -void GdbEngine::rebuildWatchModel() -{ - static int count = 0; - ++count; - PENDING_DEBUG("REBUILDING MODEL" << count); - if (boolSetting(LogTimeStamps)) - showMessage(LogWindow::logTimeStamp(), LogMiscInput); - showMessage(_("").arg(count), LogMiscInput); - showStatusMessage(tr("Finished retrieving data"), 400); - - DebuggerToolTipManager::updateEngine(this); -} - void GdbEngine::handleVarAssign(const DebuggerResponse &) { // Everything might have changed, force re-evaluation. @@ -4711,7 +4698,6 @@ void addGdbOptionPages(QList *opts) void GdbEngine::updateLocalsPython(const UpdateParameters ¶ms) { - //m_pendingWatchRequests = 0; m_pendingBreakpointRequests = 0; DebuggerCommand cmd("showData"); @@ -4820,17 +4806,16 @@ void GdbEngine::handleStackFramePython(const DebuggerResponse &response, bool pa handler->purgeOutdatedItems(toDelete); - //PENDING_DEBUG("AFTER handleStackFrame()"); - // FIXME: This should only be used when updateLocals() was - // triggered by expanding an item in the view. - //if (m_pendingWatchRequests <= 0) { - //PENDING_DEBUG("\n\n .... AND TRIGGERS MODEL UPDATE\n"); - rebuildWatchModel(); - //} - if (!partial) { + static int count = 0; + showMessage(_("") + .arg(++count).arg(LogWindow::logTimeStamp()), LogMiscInput); + showStatusMessage(tr("Finished retrieving data"), 400); + + DebuggerToolTipManager::updateEngine(this); + + if (!partial) emit stackFrameCompleted(); - DebuggerToolTipManager::updateEngine(this); - } + } else { showMessage(_("DUMPER FAILED: " + response.toString())); } diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index e71455c3939..dff3c80d3ef 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -397,7 +397,6 @@ protected: virtual void watchPoint(const QPoint &); void handleWatchPoint(const DebuggerResponse &response); - void rebuildWatchModel(); void updateWatchItem(WatchItem *item); void showToolTip();