debugger: make it possible to bulk-assign breakpoints to threads

This commit is contained in:
hjk
2010-04-30 14:18:10 +02:00
parent 24d1fbd15b
commit 5560f5e2f1
6 changed files with 38 additions and 8 deletions

View File

@@ -2544,15 +2544,13 @@ void GdbEngine::attemptBreakpointSynchronization()
data->bpEnabled = false;
continue;
}
if (data->threadSpec != data->bpThreadSpec && !data->bpThreadSpec.isEmpty()) {
if (data->threadSpec != data->bpThreadSpec && !data->bpNumber.isEmpty()) {
// The only way to change this seems to be to re-set the bp completely.
//qDebug() << "FIXME: THREAD: " << data->threadSpec << data->bpThreadSpec;
//data->bpThreadSpec = data->threadSpec;
if (!data->bpNumber.isEmpty()) {
postCommand("-break-delete " + data->bpNumber,
NeedsStop | RebuildBreakpointModel);
sendInsertBreakpoint(index);
}
data->bpThreadSpec.clear();
postCommand("-break-delete " + data->bpNumber,
NeedsStop | RebuildBreakpointModel);
sendInsertBreakpoint(index);
continue;
}
if (data->bpAddress.startsWith("0x")