Adjust lldb-server sync time

This commit is contained in:
Roy Qu 2024-03-13 16:50:14 +08:00
parent e60dc0eab5
commit 2c29b64d97
2 changed files with 3 additions and 2 deletions

View File

@ -997,6 +997,7 @@ void Debugger::syncFinishedParsing()
for (const QString& line:mClient->fullOutput()) {
pMainWindow->addDebugOutput(line);
}
pMainWindow->addDebugOutput("(gdb)");
} else {
// if (mClient->currentCmd() && mClient->currentCmd()->command == "disas") {
@ -1014,7 +1015,6 @@ void Debugger::syncFinishedParsing()
for (const QString& line:mClient->consoleOutput()) {
pMainWindow->addDebugOutput(line);
}
pMainWindow->addDebugOutput("(gdb)");
}
}

View File

@ -165,7 +165,8 @@ void GDBMIDebuggerClient::runNextCmd()
if (mCmdQueue.isEmpty()) {
if (debugger()->useDebugServer() && mInferiorRunning && !mAsyncUpdated) {
mAsyncUpdated = true;
QTimer::singleShot(5000,this,&GDBMIDebuggerClient::asyncUpdate);
//We must force refresh the response from the lldb-server....
QTimer::singleShot(500,this,&GDBMIDebuggerClient::asyncUpdate);
}
return;
}