forked from qt-creator/qt-creator
debugger: less debug output in cases we know what's missing
This commit is contained in:
@@ -1870,8 +1870,21 @@ void GdbEngine::jumpToLineExec(const QString &fileName, int lineNumber)
|
|||||||
|
|
||||||
void GdbEngine::setTokenBarrier()
|
void GdbEngine::setTokenBarrier()
|
||||||
{
|
{
|
||||||
foreach (const GdbCookie &ck, m_cookieForToken)
|
foreach (const GdbCookie &cookie, m_cookieForToken) {
|
||||||
QTC_ASSERT(ck.synchronized || ck.type == GdbInvalidCommand, return);
|
QTC_ASSERT(
|
||||||
|
cookie.synchronized
|
||||||
|
|| cookie.type == GdbInvalidCommand
|
||||||
|
// FIXME: use something like "command classes" for these cases:
|
||||||
|
|| cookie.type == GdbInfoProc
|
||||||
|
|| cookie.type == GdbStubAttached
|
||||||
|
|| cookie.type == ModulesList
|
||||||
|
|| cookie.type == WatchDebuggingHelperSetup
|
||||||
|
|| cookie.type == GdbQueryDebuggingHelper,
|
||||||
|
qDebug() << "CMD: " << cookie.command << "TYPE: " << cookie.type
|
||||||
|
<< "SYNC: " << cookie.synchronized;
|
||||||
|
return
|
||||||
|
);
|
||||||
|
}
|
||||||
PENDING_DEBUG("\n--- token barrier ---\n");
|
PENDING_DEBUG("\n--- token barrier ---\n");
|
||||||
emit gdbInputAvailable(QString(), "--- token barrier ---");
|
emit gdbInputAvailable(QString(), "--- token barrier ---");
|
||||||
m_oldestAcceptableToken = currentToken();
|
m_oldestAcceptableToken = currentToken();
|
||||||
|
@@ -142,6 +142,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (args.size() == 2 && args.at(1) == "--run-debuggee") {
|
if (args.size() == 2 && args.at(1) == "--run-debuggee") {
|
||||||
runDebuggee();
|
runDebuggee();
|
||||||
|
app.exec();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user