debugger: fix watchers containing '$' (references to registers)

This commit is contained in:
hjk
2010-01-06 12:52:41 +01:00
parent 456abf4cbb
commit e5abb34db3
2 changed files with 6 additions and 6 deletions

View File

@@ -3626,11 +3626,11 @@ void GdbEngine::updateLocals(const QVariant &cookie)
while (it.hasNext()) {
it.next();
if (!watchers.isEmpty())
watchers += "$$";
watchers += "##";
if (it.key() == WatchHandler::watcherEditPlaceHolder().toLatin1())
watchers += "<Edit>$" + QByteArray::number(it.value());
watchers += "<Edit>#" + QByteArray::number(it.value());
else
watchers += it.key() + '$' + QByteArray::number(it.value());
watchers += it.key() + '#' + QByteArray::number(it.value());
}
QByteArray options;