debugger: make 'watch' item work with new dumpers

This commit is contained in:
hjk
2009-12-04 13:22:39 +01:00
parent b0640b9a7a
commit ef9db9cf79
4 changed files with 67 additions and 19 deletions

View File

@@ -3543,10 +3543,20 @@ void GdbEngine::updateLocals(const QVariant &cookie)
m_processedNames.clear();
manager()->watchHandler()->beginCycle();
m_toolTipExpression.clear();
QStringList expanded = m_manager->watchHandler()->expandedINames().toList();
postCommand(_("-interpreter-exec console \"bb %1 0 %2\"")
WatchHandler *handler = m_manager->watchHandler();
QStringList expanded = handler->expandedINames().toList();
QString watchers;
foreach (QString item, handler->watchedExpressions()) {
if (!watchers.isEmpty())
watchers += _("$");
//item.replace(_("\""), _("\\\""));
watchers += item;
}
postCommand(_("-interpreter-exec console \"bb %1 0 %2 %3\"")
.arg(int(theDebuggerBoolSetting(UseDebuggingHelpers)))
.arg(expanded.join(_(","))),
.arg(expanded.join(_(",")))
.arg(_(watchers.toLatin1().toBase64())),
CB(handleStackFrame));
} else {
m_processedNames.clear();