Commit 40bb5032 authored by hjk's avatar hjk
Browse files

debugger: re-adjust 'moved' breakpoints after debugging finished

parent e6325373
......@@ -176,8 +176,6 @@ BreakpointData *BreakpointData::clone() const
{
BreakpointData *data = new BreakpointData();
data->m_handler = m_handler;
data->m_markerFileName = m_markerFileName;
data->m_markerLineNumber = m_markerLineNumber;
data->enabled = enabled;
data->type = type;
data->fileName = fileName;
......@@ -188,6 +186,15 @@ BreakpointData *BreakpointData::clone() const
data->threadSpec = threadSpec;
data->funcName = funcName;
data->useFullPath = useFullPath;
if (isSetByFunction()) {
// FIXME: Would removing it be better then leaving this
// "history" around?
data->m_markerFileName = m_markerFileName;
data->m_markerLineNumber = m_markerLineNumber;
} else {
data->m_markerFileName = fileName;
data->m_markerLineNumber = lineNumber.toInt();
}
return data;
}
......
......@@ -112,6 +112,9 @@ public:
void setMarkerLineNumber(int lineNumber);
int markerLineNumber() const { return m_markerLineNumber; }
bool isSetByFunction() const { return !funcName.isEmpty(); }
bool isSetByFileAndLine() const { return !fileName.isEmpty(); }
private:
// Taken from either user input or gdb responses.
QString m_markerFileName; // Used to locate the marker.
......
......@@ -1869,7 +1869,6 @@ int main(int argc, char *argv[])
//testWCout0();
//testWCout();
testColor();
return 0;
testQRegion();
testStuff();
testPeekAndPoke3();
......@@ -1950,7 +1949,6 @@ int main(int argc, char *argv[])
testQObject(argc, argv);
//QColor color(255,128,10);
//QFont font;
......
Markdown is supported
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