Restart debug with previous breakpoint mode.

This commit is contained in:
Ernie Pasveer
2022-08-02 19:22:13 -05:00
parent 831c34181e
commit ba7c6cbe13
+11 -1
View File
@@ -510,7 +510,17 @@ void SeerMainWindow::handleRunExecutable () {
}
void SeerMainWindow::handleStartExecutable () {
gdbWidget->handleGdbRunExecutable("inmain");
QString breakfunction = gdbWidget->executableBreakpointFunctionName();
// No break function, attempt to stop in "main".
if (breakfunction == "") {
gdbWidget->handleGdbRunExecutable("inmain");
// Otherwise, attempt to stop in the function.
}else{
gdbWidget->handleGdbRunExecutable("infunction");
}
}
void SeerMainWindow::handleStyleMenuChanged () {