Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d02b2e9a
Commit
d02b2e9a
authored
Nov 30, 2010
by
hjk
Browse files
debygger: remove unused code
parent
2b80651d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
d02b2e9a
...
...
@@ -2493,106 +2493,6 @@ bool GdbEngine::stateAcceptsBreakpointChanges() const
}
}
/*
void GdbEngine::attemptBreakpointSynchronization()
{
QTC_ASSERT(!m_sourcesListUpdating,
qDebug() << "SOURCES LIST CURRENTLY UPDATING"; return);
showMessage(_("ATTEMPT BREAKPOINT SYNC"));
// We don't have breakpoints in core files.
if (startParameters().startMode == AttachCore)
return;
switch (state()) {
case InferiorSetupRequested:
case InferiorRunRequested:
case InferiorRunOk:
case InferiorStopRequested:
case InferiorStopOk:
break;
default:
//qDebug() << "attempted breakpoint sync in state" << state();
showMessage(_("... NOT POSSIBLE IN CURRENT STATE"));
return;
}
if (m_breakListOutdated) {
reloadBreakListInternal();
return;
}
BreakHandler *handler = breakHandler();
foreach (BreakpointData *data, handler->takeDisabledBreakpoints()) {
QByteArray bpNumber = data->bpNumber;
if (!bpNumber.trimmed().isEmpty()) {
postCommand("-break-disable " + bpNumber,
NeedsStop | RebuildBreakpointModel);
data->bpEnabled = false;
}
}
foreach (BreakpointData *data, handler->takeEnabledBreakpoints()) {
QByteArray bpNumber = data->bpNumber;
if (!bpNumber.trimmed().isEmpty()) {
postCommand("-break-enable " + bpNumber,
NeedsStop | RebuildBreakpointModel);
data->bpEnabled = true;
}
}
for (int index = 0; index != handler->size(); ++index) {
BreakpointData *data = handler->at(index);
if (data->bpNumber.isEmpty()) { // Unset breakpoint?
data->bpNumber = " "; // Sent, but no feedback yet.
sendInsertBreakpoint(index);
} else if (data->bpNumber.toInt()) {
if (data->bpMultiple && data->bpFileName.isEmpty()) {
postCommand("info break " + data->bpNumber,
NeedsStop | RebuildBreakpointModel,
CB(handleBreakInfo), id);
continue;
}
if (data->condition != data->bpCondition && !data->conditionsMatch()) {
// Update conditions if needed.
postCommand("condition " + data->bpNumber + ' ' + data->condition,
NeedsStop | RebuildBreakpointModel,
CB(handleBreakCondition), id);
}
else // Because gdb won't do both changes at a time anyway.
if (data->ignoreCount != data->bpIgnoreCount) {
// Update ignorecount if needed.
QByteArray ic = QByteArray::number(data->ignoreCount);
postCommand("ignore " + data->bpNumber + ' ' + ic,
NeedsStop | RebuildBreakpointModel,
CB(handleBreakIgnore), id);
continue;
}
if (!data->enabled && data->bpEnabled) {
postCommand("-break-disable " + data->bpNumber,
NeedsStop | RebuildBreakpointModel,
CB(handleBreakDisable), id);
data->bpEnabled = false;
continue;
}
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.clear();
postCommand("-break-delete " + data->bpNumber,
NeedsStop | RebuildBreakpointModel);
sendInsertBreakpoint(index);
continue;
}
}
}
handler->updateMarkers();
}
*/
bool
GdbEngine
::
acceptsBreakpoint
(
BreakpointId
id
)
const
{
return
DebuggerEngine
::
isCppBreakpoint
(
breakHandler
()
->
breakpointData
(
id
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment