From 0561a8d0a6ae7588309a6e3513bbfeeef5f0aa15 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 25 Apr 2025 09:41:29 +0200 Subject: dev, LibDebugger: add kdbg, working on NeKernelContract's implementation. Signed-off-by: Amlal --- dev/LibDebugger/DebuggerContract.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'dev/LibDebugger/DebuggerContract.h') diff --git a/dev/LibDebugger/DebuggerContract.h b/dev/LibDebugger/DebuggerContract.h index d5f62c2..0ef88a2 100644 --- a/dev/LibDebugger/DebuggerContract.h +++ b/dev/LibDebugger/DebuggerContract.h @@ -4,12 +4,18 @@ #pragma once -#include +#include #include +#include namespace LibDebugger { + class DebuggerContract; + + /// \brief Process ID typedef uint64_t ProcessID; + + /// \brief Address type, a la BSD. typedef char* CAddress; /// \brief Debugger contract class in C++, as per the design states. @@ -26,10 +32,10 @@ namespace LibDebugger public: virtual bool Attach(std::string path, std::string argv, ProcessID& pid) noexcept = 0; - virtual bool Breakpoint(std::string symbol) noexcept = 0; - virtual bool Break() noexcept = 0; - virtual bool Continue() noexcept = 0; - virtual bool Detach() noexcept = 0; + virtual bool Breakpoint(std::string symbol) noexcept = 0; + virtual bool Break() noexcept = 0; + virtual bool Continue() noexcept = 0; + virtual bool Detach() noexcept = 0; virtual std::unordered_map& Get() { @@ -37,7 +43,7 @@ namespace LibDebugger } protected: - pid_t m_pid; + ProcessID m_pid; std::unordered_map m_breakpoints; }; } // namespace LibDebugger -- cgit v1.2.3