Merge branch 'master' of github.com:royqh1979/RedPanda-CPP

#	NEWS.md
This commit is contained in:
Roy Qu 2023-03-08 18:07:14 +08:00
commit 64eca05f7f
4 changed files with 8 additions and 4 deletions

View File

@ -13,7 +13,7 @@ Red Panda C++ Version 2.17
- enhancement: Improve the compatibility with Dev-C++ for project configuations saved by Redpanda-C++. - enhancement: Improve the compatibility with Dev-C++ for project configuations saved by Redpanda-C++.
- enhancement: Syntax color support for binaray integer literals. - enhancement: Syntax color support for binaray integer literals.
- enhancement: Syntax color support for suffix in integer/float literals. - enhancement: Syntax color support for suffix in integer/float literals.
- fix: Cpu info window is auto openned, when debug using gdb-server.
Red Panda C++ Version 2.16 Red Panda C++ Version 2.16

View File

@ -1198,6 +1198,10 @@ void DebugReader::processExecAsyncRecord(const QByteArray &line)
} }
} }
runInferiorStoppedHook(); runInferiorStoppedHook();
if (reason.isEmpty() && mCurrentFunc == "_start" && mCurrentFile.isEmpty()) {
//gdb-server connected, just ignore it
return;
}
if (mCurrentCmd && mCurrentCmd->source == DebugCommandSource::Console) if (mCurrentCmd && mCurrentCmd->source == DebugCommandSource::Console)
emit inferiorStopped(mCurrentFile, mCurrentLine, false); emit inferiorStopped(mCurrentFile, mCurrentLine, false);
else else

View File

@ -213,8 +213,8 @@ bool GDBMIResultParser::parseStringValue(const char *&p, QByteArray& stringValue
} }
QByteArray numStr(p,i); QByteArray numStr(p,i);
bool ok; bool ok;
unsigned char ch = numStr.toInt(&ok,8); char ch = numStr.toInt(&ok,8);
stringValue+=ch; stringValue.append(ch);
p+=i; p+=i;
break; break;
} }

View File

@ -1028,7 +1028,7 @@ void MainWindow::setActiveBreakpoint(QString fileName, int Line, bool setFocus)
activateWindow(); activateWindow();
} }
} else { } else {
pMainWindow->showCPUInfoDialog(); showCPUInfoDialog();
} }
return; return;
} }