summaryrefslogtreecommitdiffhomepage
path: root/src/DebuggerKit/POSIXMachContract.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 15:47:44 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-02 15:49:18 -0500
commitbcc6100941117dc84fb9ece3812da340d96c61a6 (patch)
treed27a97e5a4a8cfa6bfdb3688c2be0183f69e3fbd /src/DebuggerKit/POSIXMachContract.h
parentf7930b3a1279922cf9e6e75e651fe9b5df247bc6 (diff)
chore! reworked source code to exclude `Bool`, `Boolean`, and `nullPtr` macros.
fix: ErrorOr: Return `Ref<T>&` when using Leak. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/DebuggerKit/POSIXMachContract.h')
-rw-r--r--src/DebuggerKit/POSIXMachContract.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DebuggerKit/POSIXMachContract.h b/src/DebuggerKit/POSIXMachContract.h
index 76aa238..abf23b5 100644
--- a/src/DebuggerKit/POSIXMachContract.h
+++ b/src/DebuggerKit/POSIXMachContract.h
@@ -45,7 +45,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
POSIXMachContract(const POSIXMachContract&) = default;
public:
- Bool Attach(CompilerKit::STLString path, CompilerKit::STLString argv,
+ bool Attach(CompilerKit::STLString path, CompilerKit::STLString argv,
ProcessID& pid) noexcept override {
pid = fork();
@@ -82,7 +82,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
m_path = path;
}
- Bool BreakAt(CompilerKit::STLString symbol) noexcept override {
+ bool BreakAt(CompilerKit::STLString 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);
@@ -116,7 +116,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
}
#ifdef __APPLE__
- Bool Break() noexcept override {
+ bool Break() noexcept override {
task_read_t task;
task_for_pid(mach_task_self(), m_pid, &task);
@@ -125,7 +125,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
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);
@@ -134,7 +134,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
return ret == KERN_SUCCESS;
}
- Bool Detach() noexcept override {
+ bool Detach() noexcept override {
this->Continue();
task_read_t task;