summaryrefslogtreecommitdiffhomepage
path: root/dev/DebuggerKit
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
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')
-rw-r--r--dev/DebuggerKit/CommonCLI.inl2
-rw-r--r--dev/DebuggerKit/NeKernelContract.h3
-rw-r--r--dev/DebuggerKit/POSIXMachContract.h7
-rw-r--r--dev/DebuggerKit/Version.h6
-rw-r--r--dev/DebuggerKit/src/POSIXMachContractCLI.cc5
5 files changed, 13 insertions, 10 deletions
diff --git a/dev/DebuggerKit/CommonCLI.inl b/dev/DebuggerKit/CommonCLI.inl
index a4f13ca..a118634 100644
--- a/dev/DebuggerKit/CommonCLI.inl
+++ b/dev/DebuggerKit/CommonCLI.inl
@@ -21,4 +21,4 @@ static DebuggerKit::POSIX::POSIXMachContract kDebugger;
static DebuggerKit::ProcessID kPID = 0L;
static DebuggerKit::CAddress kActiveAddress = nullptr;
-static CompilerKit::STLString kPath = "";
+static CompilerKit::STLString kPath = "";
diff --git a/dev/DebuggerKit/NeKernelContract.h b/dev/DebuggerKit/NeKernelContract.h
index 669ee1f..582741a 100644
--- a/dev/DebuggerKit/NeKernelContract.h
+++ b/dev/DebuggerKit/NeKernelContract.h
@@ -41,7 +41,8 @@ class NeKernelContract final DK_DEBUGGER_CONTRACT {
NeKernelContract(const NeKernelContract&) = default;
public:
- bool Attach(CompilerKit::STLString path, CompilerKit::STLString arg_v, ProcessID& pid) noexcept override;
+ bool Attach(CompilerKit::STLString path, CompilerKit::STLString arg_v,
+ ProcessID& pid) noexcept override;
bool BreakAt(CompilerKit::STLString symbol) noexcept override;
bool Break() noexcept override;
bool Continue() noexcept override;
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
diff --git a/dev/DebuggerKit/Version.h b/dev/DebuggerKit/Version.h
index d7e3985..8f3168a 100644
--- a/dev/DebuggerKit/Version.h
+++ b/dev/DebuggerKit/Version.h
@@ -1,8 +1,8 @@
-/* -------------------------------------------
+/* ========================================
- Copyright (C) 2025 Amlal EL Mahrouss, Licensed under Apache 2.0.
+ Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-------------------------------------------- */
+======================================== */
#pragma once
diff --git a/dev/DebuggerKit/src/POSIXMachContractCLI.cc b/dev/DebuggerKit/src/POSIXMachContractCLI.cc
index 5edd65e..22a626d 100644
--- a/dev/DebuggerKit/src/POSIXMachContractCLI.cc
+++ b/dev/DebuggerKit/src/POSIXMachContractCLI.cc
@@ -27,8 +27,9 @@ static void dbgi_ctrlc_handler(std::int32_t _) {
}
NECTI_MODULE(DebuggerMachPOSIX) {
- pfd::notify("Debugger Event",
- "Userland Debugger\n(C) 2025 Amlal El Mahrouss, Licensed under Apache 2.0.");
+ pfd::notify(
+ "Debugger Event",
+ "Userland Debugger\n(C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.");
if (argc >= 3 && std::string(argv[1]) == "-p" && argv[2] != nullptr) {
kPath = argv[2];