From 57c4a0443ea718d490ad4ea57a001b034d3262d7 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 24 Nov 2024 15:54:34 +0100 Subject: feat: process execution --- src/debugger/debugger.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/debugger/debugger.h') diff --git a/src/debugger/debugger.h b/src/debugger/debugger.h index 0dbeda6..0ac2de0 100644 --- a/src/debugger/debugger.h +++ b/src/debugger/debugger.h @@ -63,6 +63,9 @@ namespace Hsdbg auto state() const -> TargetState { return m_state; } auto stop_reason() const -> StopReason { return m_stop_reason; } + + 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; } @@ -77,6 +80,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; @@ -96,5 +107,6 @@ namespace Hsdbg uint64_t m_selected_thread = 0; uint32_t m_selected_frame = 0; + uint64_t m_stop_count = 0; }; } -- cgit v1.3