diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-17 11:00:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 11:00:30 +0100 |
| commit | 2e9741a0af3ffcc613101b47ba39b883e26e39ea (patch) | |
| tree | 73c05e9d2e51488d895e9d899eaf29640265e552 /dev/DebuggerKit/POSIXMachContract.h | |
| parent | 215f6fc35253a2326888b49a618f5cb758813977 (diff) | |
| parent | 0cca08fb5a26a9c50632d2a2a7cd49e8db55badc (diff) | |
Merge pull request #18 from nekernel-org/dev
version: v0.0.7
Diffstat (limited to 'dev/DebuggerKit/POSIXMachContract.h')
| -rw-r--r-- | dev/DebuggerKit/POSIXMachContract.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/DebuggerKit/POSIXMachContract.h b/dev/DebuggerKit/POSIXMachContract.h index 931852a..a2b507c 100644 --- a/dev/DebuggerKit/POSIXMachContract.h +++ b/dev/DebuggerKit/POSIXMachContract.h @@ -54,7 +54,7 @@ class POSIXMachContract : public DebuggerContract { POSIXMachContract(const POSIXMachContract&) = default; public: - BOOL Attach(std::string path, std::string argv, ProcessID& pid) noexcept override { + Bool Attach(std::string path, std::string argv, ProcessID& pid) noexcept override { pid = fork(); if (pid == 0) { @@ -90,7 +90,7 @@ class POSIXMachContract : public DebuggerContract { m_path = path; } - BOOL BreakAt(std::string symbol) noexcept override { + Bool BreakAt(std::string symbol) noexcept override { if (!m_path.empty() && std::filesystem::exists(m_path) && std::filesystem::is_regular_file(m_path)) { auto handle = dlopen(m_path.c_str(), RTLD_LAZY); @@ -120,7 +120,7 @@ class POSIXMachContract : public DebuggerContract { return false; } - BOOL Break() noexcept override { + Bool Break() noexcept override { task_read_t task; task_for_pid(mach_task_self(), m_pid, &task); @@ -129,7 +129,7 @@ class POSIXMachContract : public DebuggerContract { return ret == KERN_SUCCESS; } - BOOL Continue() noexcept override { + Bool Continue() noexcept override { task_read_t task; task_for_pid(mach_task_self(), m_pid, &task); @@ -138,7 +138,7 @@ class POSIXMachContract : public DebuggerContract { return ret == KERN_SUCCESS; } - BOOL Detach() noexcept override { + Bool Detach() noexcept override { this->Continue(); task_read_t task; |
