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.
This commit is contained in:
FalseHonesty 2021-04-13 17:01:30 -04:00 committed by Linus Groh
commit 58d6781cbb
Notes: sideshowbarker 2024-07-18 19:18:44 +09:00
4 changed files with 24 additions and 9 deletions

View file

@ -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) {