Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Dec 28, 2024
1 parent 2d3b77c commit dabdc27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RedPandaIDE/debugger/gdbmiresultparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ qulonglong GDBMIResultParser::ParseValue::hexValue(bool &ok) const
static QString parsePathValue(QByteArray value)
{
//Q_ASSERT(mType == ParseValueType::Value);
value = value.trimmed();
if (value.isEmpty()) return QString();
#ifdef Q_OS_WIN
if (value.startsWith("/") && !value.startsWith("//"))
value=value.mid(1);
Expand All @@ -383,6 +385,8 @@ static QString parsePathValue(QByteArray value)

static QString parseUtf8PathValue(QByteArray value)
{
value = value.trimmed();
if (value.isEmpty()) return QString();
#ifdef Q_OS_WIN
if (value.startsWith("/") && !value.startsWith("//"))
value=value.mid(1);
Expand Down

0 comments on commit dabdc27

Please sign in to comment.