Debugger: Fix crash in GdbMi::parseValue with Qt 6

QString::begin/end may be null in Qt 6.

Fixes: QTCREATORBUG-25018
Change-Id: If50cb79c58096d5fa68e494e33bea131063968fb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2020-12-01 08:11:07 +01:00
parent 35380afb93
commit dda6775325

View File

@@ -198,6 +198,9 @@ QString GdbMi::parseCString(const QChar *&from, const QChar *to)
void GdbMi::parseValue(const QChar *&from, const QChar *to)
{
if (from == to)
return;
//qDebug() << "parseValue: " << QString(from, to - from);
switch (from->unicode()) {
case '{':