summaryrefslogtreecommitdiffhomepage
path: root/dev/DebuggerKit/POSIXMachContract.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-21 01:33:15 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-21 01:34:47 +0100
commit0d88ce0e3e489db5f62f0097f9461df9ccb89913 (patch)
tree9f649754096b0fb7bee9f9aa93985488beafb5b9 /dev/DebuggerKit/POSIXMachContract.h
parent56db5137ddd10f476b9820944b47ab72c6f8e019 (diff)
meta: Codebase improvements on CompilerKit.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
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