From af616a407627d87a787ae78cc36c58ac4ed3ccad Mon Sep 17 00:00:00 2001 From: hachem Date: Fri, 28 Aug 2026 15:54:34 +0200 Subject: add: process execution --- src/debugger/debugger.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/debugger/debugger.h') diff --git a/src/debugger/debugger.h b/src/debugger/debugger.h index c4f3431..adbf91d 100644 --- a/src/debugger/debugger.h +++ b/src/debugger/debugger.h @@ -69,6 +69,11 @@ namespace Hsdbg auto state() const -> TargetState { return m_state; } auto stop_reason() const -> StopReason { return m_stop_reason; } + + // bumped on every stop, so the ui can tell a new one from the one it + // already followed + auto stop_count() const -> uint64_t { return m_stop_count; } + auto target_path() const -> const std::filesystem::path& { return m_target_path; } auto process_id() const -> uint64_t { return m_process_id; } @@ -84,6 +89,14 @@ namespace Hsdbg auto resolve_breakpoint(Breakpoint& breakpoint) -> void; auto sync_breakpoints() -> void; + auto require_stopped() const -> Result; + auto sync_after_start() -> void; + auto pump_events() -> void; + auto drain_output() -> void; + auto on_stopped() -> void; + auto on_exited() -> void; + auto refresh_call_stack() -> void; + std::unique_ptr m_session; TargetState m_state = TargetState::NoTarget; @@ -103,5 +116,6 @@ namespace Hsdbg uint64_t m_selected_thread = 0; uint32_t m_selected_frame = 0; + uint64_t m_stop_count = 0; }; } -- cgit v1.3