Reviewed-by: Friedemann Kleint
{
QTC_ASSERT(m_bp,/**/);
foreach (BreakpointData *data, *m_bp) {
- data->m_handler = other;
+ data->m_handler = other;
+ data->clear();
}
m_bp = 0;
removeMarker();
}
+void BreakpointData::clear()
+{
+ removeMarker();
+ bpNumber.clear();
+ bpCondition.clear();
+ bpIgnoreCount = 0;
+ bpFileName.clear();
+ bpFullName.clear();
+ bpLineNumber = 0;
+ bpCorrectedLineNumber = 0;
+ bpThreadSpec.clear();
+ bpFuncName.clear();
+ bpAddress = 0;
+ bpMultiple = false;
+ bpEnabled = true;
+ bpState.clear();
+ m_markerFileName.clear();
+ m_markerLineNumber = 0;
+}
+
void BreakpointData::removeMarker()
{
BreakpointMarker *m = marker;
QString toToolTip() const;
BreakHandler *handler() { return m_handler; }
void reinsertBreakpoint();
+ void clear(); // Delete all generated data.
bool isLocatedAt(const QString &fileName, int lineNumber,
bool useMarkerPosition) const;