forked from qt-creator/qt-creator
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:
@@ -198,6 +198,9 @@ QString GdbMi::parseCString(const QChar *&from, const QChar *to)
|
|||||||
|
|
||||||
void GdbMi::parseValue(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);
|
//qDebug() << "parseValue: " << QString(from, to - from);
|
||||||
switch (from->unicode()) {
|
switch (from->unicode()) {
|
||||||
case '{':
|
case '{':
|
||||||
|
Reference in New Issue
Block a user