debugger: work on breakpoint enabling/disabling in gdb engine

This commit is contained in:
hjk
2010-11-15 16:22:51 +01:00
parent a3923f8c24
commit 0b32820a48
6 changed files with 115 additions and 61 deletions

View File

@@ -124,13 +124,13 @@ bool BreakpointData::isLocatedAt(const QString &fileName, int lineNumber,
return lineNumber == line && fileNameMatch(fileName, m_markerFileName);
}
bool BreakpointData::conditionsMatch(const QString &other) const
bool BreakpointData::conditionsMatch(const QByteArray &other) const
{
// Some versions of gdb "beautify" the passed condition.
QString s1 = m_condition;
s1.remove(QChar(' '));
QString s2 = other;
s2.remove(QChar(' '));
QByteArray s1 = m_condition;
s1.replace(' ', "");
QByteArray s2 = other;
s2.replace(' ', "");
return s1 == s2;
}