- enhancement: Make output in the debugger console cleaner.

This commit is contained in:
Roy Qu 2024-03-14 09:23:04 +08:00
parent fc27fac68e
commit a5f7b02324
2 changed files with 6 additions and 2 deletions

View File

@ -1012,8 +1012,11 @@ void Debugger::syncFinishedParsing()
// pMainWindow->addDebugOutput("(gdb)");
// }
// }
for (const QString& line:mClient->consoleOutput()) {
pMainWindow->addDebugOutput(line);
if (!mClient->consoleOutput().isEmpty()) {
for (const QString& line:mClient->consoleOutput()) {
pMainWindow->addDebugOutput(line);
}
pMainWindow->addDebugOutput("(gdb)");
}
}
}

View File

@ -867,6 +867,7 @@ void GDBMIDebuggerClient::processResultRecord(const QByteArray &line)
}
disOutput=newOutput;
}
mConsoleOutput.clear();
emit disassemblyUpdate(mCurrentFile,mCurrentFunc, disOutput);
}
}