Debugger: Fix displaying LLDB states

Do not update states label with empty strings while
debugging as this overrides real state information
when performing additional actions like fetching
variables, stack, and so on  inside the debugger.

Change-Id: Ic026644931c845b6f3fb5bb422acc6e36e4a4142
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2024-05-23 13:06:51 +02:00
parent 30d755ccb4
commit 4d98ffab57

View File

@@ -407,9 +407,10 @@ void LldbEngine::handleResponse(const QString &response)
const QString name = item.name();
if (name == "result") {
QString msg = item["status"].data();
if (!msg.isEmpty())
if (!msg.isEmpty()) {
msg[0] = msg.at(0).toUpper();
showStatusMessage(msg);
showStatusMessage(msg);
}
int token = item["token"].toInt();
showMessage(QString("%1^").arg(token), LogOutput);