1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:17:35 +00:00

HackStudio: Add 'pause debuggee' button

This button sends a SIGSTOP to the debugged process, which pauses it.
The debuggee can be resumed with the 'continue' button.
This commit is contained in:
Itamar 2023-02-19 22:52:52 +02:00 committed by Andreas Kling
parent 91224d47d2
commit 47f5a3ea9a
8 changed files with 44 additions and 11 deletions

View file

@ -29,7 +29,12 @@ public:
void update_state(Debug::ProcessInspector&, PtraceRegisters const&);
void program_stopped();
void set_debug_actions_enabled(bool enabled);
enum class DebugActionsState {
DebuggeeRunning,
DebuggeeStopped,
};
void set_debug_actions_enabled(bool enabled, Optional<DebugActionsState>);
Function<void(Debug::DebugInfo::SourcePosition const&)> on_backtrace_frame_selection;
@ -51,6 +56,7 @@ private:
RefPtr<GUI::Action> m_singlestep_action;
RefPtr<GUI::Action> m_step_in_action;
RefPtr<GUI::Action> m_step_out_action;
RefPtr<GUI::Action> m_pause_action;
};
}