Use events to notify the user about the debugee's death

This commit is contained in:
yossizap 2019-12-20 12:58:06 +00:00 committed by Florian Märkl
parent 3be0472837
commit f5cd754a0d

View File

@ -3121,6 +3121,13 @@ void CutterCore::handleREvent(int type, void *data)
emit classAttrsChanged(QString::fromUtf8(ev->attr.class_name));
break;
}
case R_EVENT_DEBUG_PROCESS_FINISHED: {
auto ev = reinterpret_cast<REventDebugProcessFinished*>(data);
QMessageBox msgBox;
msgBox.setText(tr("Debugged process exited (") + QString::number(ev->pid) + ")");
msgBox.exec();
break;
}
default:
break;
}