summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2023-02-19 22:52:52 +0200
committerAndreas Kling <kling@serenityos.org>2023-02-24 19:09:27 +0100
commit47f5a3ea9afeaade0295022c7e01fdc54401ef9f (patch)
tree800bff0439556de2e760c1734dc624ea3040fcee /Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h
parent91224d47d20ab149ddf41e681ea6367c50123323 (diff)
downloadserenity-47f5a3ea9afeaade0295022c7e01fdc54401ef9f.zip
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.
Diffstat (limited to 'Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h')
-rw-r--r--Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h b/Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h
index 11759c649d..e08b23dfae 100644
--- a/Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h
+++ b/Userland/DevTools/HackStudio/Debugger/DebugInfoWidget.h
@@ -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;
};
}