summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorFalseHonesty <thefalsehonesty@gmail.com>2021-04-13 17:01:30 -0400
committerLinus Groh <mail@linusgroh.de>2021-04-21 13:42:09 +0200
commit58d6781cbbea972f343e483ee30aae835f365fdb (patch)
treee46ca265a62946750d3ad3a263cbd8e46621b81a /Userland/Libraries
parent5a31ca06db58a121f11b698e03a2b228d4349dc1 (diff)
downloadserenity-58d6781cbbea972f343e483ee30aae835f365fdb.zip
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibDebug/DebugSession.h3
1 files changed, 2 insertions, 1 deletions
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) {