Commit 1c5c51c9 authored by hjk's avatar hjk
Browse files

Debugger: Disable # characters in watched expression

They are not useful and break the dumper protocol.

Change-Id: Ice7e21575e371ee3f8bb8cfb80b73aed47542932
Reviewed-by: default avatarhjk <>
parent 0a3b20f5
......@@ -1562,14 +1562,18 @@ QByteArray WatchHandler::watcherName(const QByteArray &exp)
return "watch." + QByteArray::number(theWatcherNames[exp]);
void WatchHandler::watchExpression(const QString &exp, const QString &name)
void WatchHandler::watchExpression(const QString &exp0, const QString &name)
QString exp = exp0;
QTC_ASSERT(m_engine, return);
// Do not insert the same entry more then once.
if (theWatcherNames.value(exp.toLatin1()))
// FIXME: 'exp' can contain illegal characters
exp.replace(QLatin1Char('#'), QString());
WatchData data;
data.exp = exp.toLatin1(); = name.isEmpty() ? exp : name;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment