Don't auto-refresh the Array/Matrix visualizers when the program exits

gdb reports the exit as a *stopped event (reason="exited-*"), so with
the Auto checkbox checked the visualizers fired one last refresh on a
process that no longer exists, logging "unable to read memory" errors.
This commit is contained in:
tiresiasfromthebai
2026-08-09 17:34:27 +02:00
parent e96f8533a1
commit 58ce8fac72
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -417,8 +417,9 @@ void SeerMatrixVisualizerWidget::handleText (const QString& text) {
matrixStrideLineEdit->setFocus();
}
// At a stopping point, refresh.
}else if (text.startsWith("*stopped,reason=\"")) {
// At a stopping point, refresh. Skip the "exited" reasons: the program
// is gone and reading the matrix would fail with a memory error.
}else if (text.startsWith("*stopped,reason=\"") && text.startsWith("*stopped,reason=\"exited") == false) {
if (autoRefreshCheckBox->isChecked()) {
handleRefreshButton();