Add --bs hellofibonacci.cpp:28 option to start/run.

This commit is contained in:
Ernie Pasveer
2023-11-26 14:06:32 -06:00
parent 9626cd3bb2
commit eb878e6ad5
7 changed files with 154 additions and 111 deletions
+24 -9
View File
@@ -21,6 +21,8 @@ SeerDebugDialog::SeerDebugDialog (QWidget* parent) : QDialog(parent) {
// Set up the UI.
setupUi(this);
buttonBox->button(QDialogButtonBox::Ok)->setText("Launch");
// Setup the widgets
setExecutableName("");
setExecutableSymbolName("");
@@ -149,8 +151,6 @@ QString SeerDebugDialog::breakpointsFilename () const {
void SeerDebugDialog::setBreakpointMode (const QString& mode) {
qDebug() << mode;
if (mode == "none") {
noBreakpointRadioButton->setChecked(true);
return;
@@ -160,9 +160,13 @@ void SeerDebugDialog::setBreakpointMode (const QString& mode) {
}else if (mode == "infunction") {
breakpointInFunctionRadioButton->setChecked(true);
return;
}else if (mode == "insource") {
breakpointAtSourceRadioButton->setChecked(true);
return;
}
noBreakpointRadioButton->setChecked(true);
// Default of "inmain".
breakpointInMainRadioButton->setChecked(true);
}
QString SeerDebugDialog::breakpointMode () const {
@@ -173,20 +177,18 @@ QString SeerDebugDialog::breakpointMode () const {
return "inmain";
}else if (breakpointInFunctionRadioButton->isChecked()) {
return "infunction";
}else if (breakpointAtSourceRadioButton->isChecked()) {
return "insource";
}
return "none";
return "inmain";
}
void SeerDebugDialog::setBreakpointFunctionName (const QString& nameoraddress) {
qDebug() << nameoraddress;
breakpointInFunctionLineEdit->setText(nameoraddress);
if (nameoraddress == "") {
noBreakpointRadioButton->setChecked(true);
}else{
if (nameoraddress != "") {
breakpointInFunctionRadioButton->setChecked(true);
}
}
@@ -195,6 +197,19 @@ QString SeerDebugDialog::breakpointFunctionName () const {
return breakpointInFunctionLineEdit->text();
}
void SeerDebugDialog::setBreakpointSourceName (const QString& sourceFilenameAndLineno) {
breakpointAtSourceLineEdit->setText(sourceFilenameAndLineno);
if (sourceFilenameAndLineno != "") {
breakpointAtSourceRadioButton->setChecked(true);
}
}
QString SeerDebugDialog::breakpointSourceName () const {
return breakpointAtSourceLineEdit->text();
}
void SeerDebugDialog::setShowAssemblyTab (bool flag) {
showAsseblyTabCheckBox->setChecked(flag);
}