From f5cd754a0d2877a4531a477ba135b425044f883c Mon Sep 17 00:00:00 2001 From: yossizap Date: Fri, 20 Dec 2019 12:58:06 +0000 Subject: [PATCH] Use events to notify the user about the debugee's death --- src/core/Cutter.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 2a4bf069..30f54273 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -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(data); + QMessageBox msgBox; + msgBox.setText(tr("Debugged process exited (") + QString::number(ev->pid) + ")"); + msgBox.exec(); + break; + } default: break; }