hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/debugger/debugger.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-02-08 01:59:56 +0100
committerhachem <im@hachem.wtf>2025-02-08 01:59:56 +0100
commit288f2ecea48f185205bda44a2737e74c813d29ba (patch)
treea57da01129a5ffdce44aeca6a4bfa13fdac31215 /src/debugger/debugger.h
parent66000c76d2c192df515d7a06af605587462d60be (diff)
feat: source tree and symbols panel
Diffstat (limited to 'src/debugger/debugger.h')
-rw-r--r--src/debugger/debugger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debugger/debugger.h b/src/debugger/debugger.h
index 04b5e61..06b6ae9 100644
--- a/src/debugger/debugger.h
+++ b/src/debugger/debugger.h
@@ -54,6 +54,7 @@ namespace Hsdbg
auto locals() const -> std::span<const Variable> { return m_locals; }
auto registers() const -> std::span<const Register> { return m_registers; }
auto symbols() const -> std::span<const Symbol> { return m_symbols; }
+ auto source_files() const -> std::span<const std::filesystem::path> { return m_source_files; }
auto disassembly() const -> std::span<const Instruction> { return m_disassembly; }
auto disassembly_name() const -> std::string_view { return m_disassembly_name; }
auto evaluate(std::string_view expression) -> Result<std::string>;
@@ -97,6 +98,7 @@ namespace Hsdbg
auto refresh_call_stack() -> void;
auto refresh_frame_data() -> void;
auto refresh_symbols() -> void;
+ auto refresh_source_files() -> void;
auto refresh_disassembly() -> void;
auto load_disassembly(uint64_t file_address) -> void;
@@ -116,6 +118,7 @@ namespace Hsdbg
std::vector<Variable> m_locals;
std::vector<Register> m_registers;
std::vector<Symbol> m_symbols;
+ std::vector<std::filesystem::path> m_source_files;
std::vector<Instruction> m_disassembly;
std::string m_disassembly_name;
std::vector<std::string> m_console_output;