diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-19 17:33:26 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-19 17:33:26 +0200 |
| commit | befde76cfa46c766e81f74eb5ac65d3dae2dde87 (patch) | |
| tree | 45b2f9fd6b3f9605c2747485bd24483192f99e73 /dev/LibDebugger/POSIXMachContract.h | |
| parent | 3afc481dc64a07fe7fcaff9ce7a12a492c3ec8e7 (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/POSIXMachContract.h')
| -rw-r--r-- | dev/LibDebugger/POSIXMachContract.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dev/LibDebugger/POSIXMachContract.h b/dev/LibDebugger/POSIXMachContract.h index 6ff083f..1962202 100644 --- a/dev/LibDebugger/POSIXMachContract.h +++ b/dev/LibDebugger/POSIXMachContract.h @@ -12,6 +12,7 @@ /// @brief POSIX/Mach debugger. #include <LibDebugger/DebuggerContract.h> +#include <LibCompiler/Defines.h> #include <sys/ptrace.h> #include <sys/types.h> @@ -35,7 +36,7 @@ namespace LibDebugger::POSIX { /// \brief POSIXMachContract engine interface class in C++ /// \author Amlal El Mahrouss - class POSIXMachContract final : public DebuggerContract + class POSIXMachContract : public DebuggerContract { public: explicit POSIXMachContract() = default; @@ -46,7 +47,7 @@ namespace LibDebugger::POSIX POSIXMachContract(const POSIXMachContract&) = default; public: - bool Attach(ProcessID pid) noexcept override + BOOL Attach(ProcessID pid) noexcept override { #ifdef __APPLE__ if (pid == 0) @@ -69,7 +70,7 @@ namespace LibDebugger::POSIX #endif } - bool Break(CAddress addr) noexcept override + BOOL Break(CAddress addr) noexcept override { #ifdef __APPLE__ task_read_t task; @@ -100,7 +101,7 @@ namespace LibDebugger::POSIX #endif } - bool Continue() noexcept override + BOOL Continue() noexcept override { #ifdef __APPLE__ task_read_t task; @@ -122,7 +123,7 @@ namespace LibDebugger::POSIX #endif } - bool Detach() noexcept override + BOOL Detach() noexcept override { #ifdef __APPLE__ this->Continue(); |
