summaryrefslogtreecommitdiffhomepage
path: root/dev/LibDebugger/DebuggerContract.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-04-19 17:33:26 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-04-19 17:33:26 +0200
commitbefde76cfa46c766e81f74eb5ac65d3dae2dde87 (patch)
tree45b2f9fd6b3f9605c2747485bd24483192f99e73 /dev/LibDebugger/DebuggerContract.h
parent3afc481dc64a07fe7fcaff9ce7a12a492c3ec8e7 (diff)
dev, LibCompiler, tooling: refactor and separate components into modules
(cppdrv, cxxdrv) Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibDebugger/DebuggerContract.h')
-rw-r--r--dev/LibDebugger/DebuggerContract.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/dev/LibDebugger/DebuggerContract.h b/dev/LibDebugger/DebuggerContract.h
index 5d4f728..540ad08 100644
--- a/dev/LibDebugger/DebuggerContract.h
+++ b/dev/LibDebugger/DebuggerContract.h
@@ -9,8 +9,8 @@
namespace LibDebugger
{
- typedef uint64_t ProcessID;
- typedef char* CAddress;
+ typedef uint64_t ProcessID;
+ typedef char* CAddress;
/// \brief Debugger contract class in C++, as per the design states.
/// \author Amlal El Mahrouss
@@ -18,7 +18,7 @@ namespace LibDebugger
{
public:
explicit DebuggerContract() = default;
- virtual ~DebuggerContract() = default;
+ virtual ~DebuggerContract() = default;
public:
DebuggerContract& operator=(const DebuggerContract&) = default;
@@ -26,9 +26,9 @@ namespace LibDebugger
public:
virtual bool Attach(ProcessID pid) noexcept = 0;
- virtual bool Break(CAddress addr) noexcept = 0;
- virtual bool Continue() noexcept = 0;
- virtual bool Detach() noexcept = 0;
+ virtual bool Break(CAddress addr) noexcept = 0;
+ virtual bool Continue() noexcept = 0;
+ virtual bool Detach() noexcept = 0;
virtual std::unordered_map<uintptr_t, uintptr_t>& Get()
{
@@ -39,4 +39,4 @@ namespace LibDebugger
pid_t m_pid;
std::unordered_map<uintptr_t, uintptr_t> m_breakpoints;
};
-} // namespace LibDebugger::POSIX
+} // namespace LibDebugger