- 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")
- 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: Cpu info window is auto openned, when debug using gdb-server.
Red Panda C++ Version 2.16

View File

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

View File

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

View File

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