- fix: Cpu info window is auto openned, when debug using gdb-server.

This commit is contained in:
Roy Qu 2023-03-08 18:01:10 +08:00
parent d295ff8d11
commit 0c8f3a0f60
4 changed files with 8 additions and 3 deletions

View File

@ -10,6 +10,7 @@ Red Panda C++ Version 2.17
- fix: After project's default encoding is changed in the project options dialog, all project files' encoding are wrongly setted to the new encoding.(They should be "Project default") - fix: After project's default encoding is changed in the project options dialog, all project files' encoding are wrongly setted to the new encoding.(They should be "Project default")
- enhancement: Make project's default encoding setting in the project options dialog more user friendly. - enhancement: Make project's default encoding setting in the project options dialog more user friendly.
- fix: In project options dialog's file page, Project's default encoding name is not updated when it's changed. - fix: In project options dialog's file page, Project's default encoding name is not updated when it's changed.
- 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;
} }