summaryrefslogtreecommitdiffhomepage
path: root/dev/DebuggerKit/POSIXMachContract.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-20 19:39:28 -0500
committerGitHub <noreply@github.com>2025-11-20 19:39:28 -0500
commitc78b97d70a06f0d17e52bf4ac58d4b917789e8a6 (patch)
treed4ab3c4e1685e7f3906bc29dd47cc130d116e190 /dev/DebuggerKit/POSIXMachContract.h
parent274936aa8c14c09239f771bce5b5cc5b6ae507a2 (diff)
parentb8e6e1492ed14e270b1061809b0569b8d2f4c0ec (diff)
Merge pull request #26 from nekernel-org/devv0.0.6
NeCTI: Update ReadMe and improve codebase.
Diffstat (limited to 'dev/DebuggerKit/POSIXMachContract.h')
-rw-r--r--dev/DebuggerKit/POSIXMachContract.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/dev/DebuggerKit/POSIXMachContract.h b/dev/DebuggerKit/POSIXMachContract.h
index 4c20d38..b1c0e0a 100644
--- a/dev/DebuggerKit/POSIXMachContract.h
+++ b/dev/DebuggerKit/POSIXMachContract.h
@@ -56,7 +56,8 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
POSIXMachContract(const POSIXMachContract&) = default;
public:
- Bool Attach(CompilerKit::STLString path, CompilerKit::STLString argv, ProcessID& pid) noexcept override {
+ Bool Attach(CompilerKit::STLString path, CompilerKit::STLString argv,
+ ProcessID& pid) noexcept override {
pid = fork();
if (pid == 0) {
@@ -114,7 +115,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
mach_vm_protect(task, (mach_vm_address_t) addr, sizeof(uint32_t), false,
VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE);
-
+
mach_vm_write(task, (mach_vm_address_t) addr, (vm_offset_t) &brk_inst, sizeof(addr));
return true;
@@ -153,7 +154,7 @@ class POSIXMachContract final DK_DEBUGGER_CONTRACT {
}
private:
- ProcessID m_pid{0};
+ ProcessID m_pid{0};
CompilerKit::STLString m_path;
};
} // namespace DebuggerKit::POSIX