forked from qt-creator/qt-creator
debugger: clean up old commented code
This commit is contained in:
@@ -812,7 +812,6 @@ void GdbEngine::handleResultRecord(const GdbResultRecord &record)
|
|||||||
{
|
{
|
||||||
//qDebug() << "TOKEN:" << record.token
|
//qDebug() << "TOKEN:" << record.token
|
||||||
// << " ACCEPTABLE:" << m_oldestAcceptableToken;
|
// << " ACCEPTABLE:" << m_oldestAcceptableToken;
|
||||||
//qDebug() << "";
|
|
||||||
//qDebug() << "\nRESULT" << record.token << record.toString();
|
//qDebug() << "\nRESULT" << record.token << record.toString();
|
||||||
|
|
||||||
int token = record.token;
|
int token = record.token;
|
||||||
@@ -823,7 +822,7 @@ void GdbEngine::handleResultRecord(const GdbResultRecord &record)
|
|||||||
// In theory this should not happen, in practice it does.
|
// In theory this should not happen, in practice it does.
|
||||||
debugMessage(_("COOKIE FOR TOKEN %1 ALREADY EATEN. "
|
debugMessage(_("COOKIE FOR TOKEN %1 ALREADY EATEN. "
|
||||||
"TWO RESPONSES FOR ONE COMMAND?").arg(token));
|
"TWO RESPONSES FOR ONE COMMAND?").arg(token));
|
||||||
// handle a case known to occur on Linux/gdb 6.8 when debugging moc
|
// Handle a case known to occur on Linux/gdb 6.8 when debugging moc
|
||||||
// with helpers enabled. In this case we get a second response with
|
// with helpers enabled. In this case we get a second response with
|
||||||
// msg="Cannot find new threads: generic error"
|
// msg="Cannot find new threads: generic error"
|
||||||
if (record.resultClass == GdbResultError) {
|
if (record.resultClass == GdbResultError) {
|
||||||
@@ -832,8 +831,6 @@ void GdbEngine::handleResultRecord(const GdbResultRecord &record)
|
|||||||
tr("Executable failed"), QString::fromLocal8Bit(msg));
|
tr("Executable failed"), QString::fromLocal8Bit(msg));
|
||||||
showStatusMessage(tr("Process failed to start."));
|
showStatusMessage(tr("Process failed to start."));
|
||||||
exitDebugger();
|
exitDebugger();
|
||||||
//qq->notifyInferiorStopped();
|
|
||||||
//qq->notifyInferiorExited();
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -858,8 +855,6 @@ void GdbEngine::handleResultRecord(const GdbResultRecord &record)
|
|||||||
<< "\n record: " << record.toString();
|
<< "\n record: " << record.toString();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// << "\n data: " << record.data.toString(true);
|
|
||||||
|
|
||||||
if (cmd.callback)
|
if (cmd.callback)
|
||||||
(this->*cmd.callback)(record, cmd.cookie);
|
(this->*cmd.callback)(record, cmd.cookie);
|
||||||
if (cmd.adapterCallback)
|
if (cmd.adapterCallback)
|
||||||
@@ -911,7 +906,7 @@ void GdbEngine::handleTargetCore()
|
|||||||
m_manager->resetLocation();
|
m_manager->resetLocation();
|
||||||
tryLoadDebuggingHelpers();
|
tryLoadDebuggingHelpers();
|
||||||
qq->stackHandler()->setCurrentIndex(0);
|
qq->stackHandler()->setCurrentIndex(0);
|
||||||
updateLocals(); // Quick shot
|
updateLocals();
|
||||||
reloadStack();
|
reloadStack();
|
||||||
if (supportsThreads())
|
if (supportsThreads())
|
||||||
postCommand(_("-thread-list-ids"), WatchUpdate, CB(handleStackListThreads), 0);
|
postCommand(_("-thread-list-ids"), WatchUpdate, CB(handleStackListThreads), 0);
|
||||||
@@ -935,7 +930,6 @@ void GdbEngine::handleQuerySources(const GdbResultRecord &record, const QVariant
|
|||||||
full = QDir::cleanPath(full);
|
full = QDir::cleanPath(full);
|
||||||
#endif
|
#endif
|
||||||
if (fullName.isValid() && QFileInfo(full).isReadable()) {
|
if (fullName.isValid() && QFileInfo(full).isReadable()) {
|
||||||
//qDebug() << "STORING 2:" << fileName << full;
|
|
||||||
m_shortToFullName[fileName] = full;
|
m_shortToFullName[fileName] = full;
|
||||||
m_fullToShortName[full] = fileName;
|
m_fullToShortName[full] = fileName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user