- fix: Failed to evaluate expressions while debugging, if the expression has spaces in it.

This commit is contained in:
Roy Qu 2024-03-12 19:03:47 +08:00
parent 80ec88e552
commit 2cc00cb924
1 changed files with 1 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ void GDBMIDebuggerClient::evalExpression(const QString &expression)
{
QString escaped;
foreach(const QChar& ch, expression) {
if (ch.unicode()<=32) {
if (ch.unicode()<32) {
escaped+=QString("\\%1").arg(ch.unicode(),0,8);
} else
escaped+=ch;