diff options
| author | hachem <im@hachem.wtf> | 2024-11-24 15:54:34 +0100 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-11-24 15:54:34 +0100 |
| commit | 57c4a0443ea718d490ad4ea57a001b034d3262d7 (patch) | |
| tree | 87680439bd8032488a06b9e2d4da4c340f7daec4 /src/debugger/debugger.h | |
| parent | b641d7306c61cdc0b5dcee9fedba434afbfb694b (diff) | |
feat: process execution
Diffstat (limited to 'src/debugger/debugger.h')
| -rw-r--r-- | src/debugger/debugger.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<void>; + 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<Session> 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; }; } |
