debugger: introduce a parameter struct for updateLocal

Change-Id: I05ecc935e1b6cf9483f23624f18e4dc5b9f295f3
Reviewed-on: http://codereview.qt.nokia.com/178
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-05-26 16:35:36 +02:00
committed by hjk
parent cdfcbcd0e0
commit de929e825d
4 changed files with 37 additions and 14 deletions

View File

@@ -3628,7 +3628,11 @@ bool GdbEngine::setToolTipExpression(const QPoint &mousePos,
qDebug() << "GdbEngine::setToolTipExpression2 " << exp << (*m_toolTipContext);
if (isSynchronous()) {
updateLocalsPython(true, tooltipIName(exp));
UpdateParameters params;
params.tryPartial = true;
params.tooltipOnly = true;
params.varList = tooltipIName(exp);
updateLocalsPython(params);
} else {
WatchData toolTip;
toolTip.exp = exp.toLatin1();
@@ -3709,12 +3713,15 @@ void GdbEngine::updateWatchData(const WatchData &data, const WatchUpdateFlags &f
// << (m_pendingWatchRequests == 0)
// << (m_pendingBreakpointRequests == 0);
bool tryPartial = flags.tryIncremental
UpdateParameters params;
params.tryPartial = flags.tryIncremental
&& hasPython()
&& m_pendingWatchRequests == 0
&& m_pendingBreakpointRequests == 0;
params.tooltipOnly = false;
params.varList = data.iname;
updateLocalsPython(tryPartial, data.iname);
updateLocalsPython(params);
#endif
} else {
// Bump requests to avoid model rebuilding during the nested
@@ -3845,7 +3852,7 @@ void GdbEngine::handleDebuggingHelperSetup(const GdbResponse &response)
void GdbEngine::updateLocals()
{
if (hasPython())
updateLocalsPython(false, QByteArray());
updateLocalsPython(UpdateParameters());
else
updateLocalsClassic();
}