From 58d6781cbbea972f343e483ee30aae835f365fdb Mon Sep 17 00:00:00 2001 From: FalseHonesty Date: Tue, 13 Apr 2021 17:01:30 -0400 Subject: HackStudio+LibDebug: Support stopping a debugged process In LibDebug this required implementing the Kill debug action, and in HackStudio this required making the toolbar's stop action stop the debugger if active. --- Userland/Libraries/LibDebug/DebugSession.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibDebug/DebugSession.h b/Userland/Libraries/LibDebug/DebugSession.h index 993ca4c805..89f12a6c8e 100644 --- a/Userland/Libraries/LibDebug/DebugSession.h +++ b/Userland/Libraries/LibDebug/DebugSession.h @@ -352,7 +352,8 @@ void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callbac break; } if (decision == DebugDecision::Kill) { - VERIFY_NOT_REACHED(); // TODO: implement + kill(m_debuggee_pid, SIGTERM); + break; } if (state == State::SingleStep && !did_single_step) { -- cgit v1.2.3