diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-05 10:24:19 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-05 10:24:19 +0200 |
| commit | af6d1735afe4b63d13ddb73f532b4a3309f527c2 (patch) | |
| tree | 5ae95a116c16e990146495d30d2fd13e4474e663 /dev/LibDebugger/src | |
| parent | 3539f86015f3363dcfb124aa020d3adf7345ffaa (diff) | |
LibDebugger: refactor! Breaking changes inside the debugger contracts.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibDebugger/src')
| -rw-r--r-- | dev/LibDebugger/src/NeKernelContract.cc | 5 | ||||
| -rw-r--r-- | dev/LibDebugger/src/NeKernelContractCLI.cc | 8 | ||||
| -rw-r--r-- | dev/LibDebugger/src/POSIXMachContractCLI.cc | 6 |
3 files changed, 10 insertions, 9 deletions
diff --git a/dev/LibDebugger/src/NeKernelContract.cc b/dev/LibDebugger/src/NeKernelContract.cc index bc93a46..075a1cb 100644 --- a/dev/LibDebugger/src/NeKernelContract.cc +++ b/dev/LibDebugger/src/NeKernelContract.cc @@ -19,11 +19,12 @@ NeKernelContract::NeKernelContract() = default; NeKernelContract::~NeKernelContract() = default; -bool NeKernelContract::Attach(LibCompiler::STLString path, LibCompiler::STLString argv, ProcessID& pid) noexcept { +bool NeKernelContract::Attach(LibCompiler::STLString path, LibCompiler::STLString argv, + ProcessID& pid) noexcept { return false; } -bool NeKernelContract::Breakpoint(LibCompiler::STLString symbol) noexcept { +bool NeKernelContract::BreakAt(LibCompiler::STLString symbol) noexcept { return false; } diff --git a/dev/LibDebugger/src/NeKernelContractCLI.cc b/dev/LibDebugger/src/NeKernelContractCLI.cc index ec73788..25e9c13 100644 --- a/dev/LibDebugger/src/NeKernelContractCLI.cc +++ b/dev/LibDebugger/src/NeKernelContractCLI.cc @@ -23,7 +23,7 @@ static void dbgi_ctrlc_handler(std::int32_t _) { kKernelDebugger.Break(); - pfd::notify("Debugger Event", "Breakpoint hit!"); + pfd::notify("Debugger Event", "BreakAt hit!"); kKeepRunning = false; } @@ -43,7 +43,7 @@ LIBCOMPILER_MODULE(DebuggerNeKernel) { LibCompiler::install_signal(SIGINT, dbgi_ctrlc_handler); kKernelDebugger.Attach(kPath, "", kPID); - kKernelDebugger.Breakpoint("$HANDOVER_START"); + kKernelDebugger.BreakAt("$HANDOVER_START"); while (YES) { if (kKeepRunning) { @@ -83,8 +83,8 @@ LIBCOMPILER_MODULE(DebuggerNeKernel) { std::getline(std::cin, cmd); - if (kKernelDebugger.Breakpoint(cmd)) { - pfd::notify("Debugger Event", "Add Breakpoint at: " + cmd); + if (kKernelDebugger.BreakAt(cmd)) { + pfd::notify("Debugger Event", "Add BreakAt at: " + cmd); } } } diff --git a/dev/LibDebugger/src/POSIXMachContractCLI.cc b/dev/LibDebugger/src/POSIXMachContractCLI.cc index d754643..a45b52d 100644 --- a/dev/LibDebugger/src/POSIXMachContractCLI.cc +++ b/dev/LibDebugger/src/POSIXMachContractCLI.cc @@ -25,7 +25,7 @@ static void dbgi_ctrlc_handler(std::int32_t _) { kDebugger.Break(); - pfd::notify("Debugger Event", "Breakpoint hit!"); + pfd::notify("Debugger Event", "BreakAt hit!"); kKeepRunning = false; } @@ -81,8 +81,8 @@ LIBCOMPILER_MODULE(DebuggerMachPOSIX) { std::getline(std::cin, cmd); - if (kDebugger.Breakpoint(cmd)) { - pfd::notify("Debugger Event", "Add Breakpoint at: " + cmd); + if (kDebugger.BreakAt(cmd)) { + pfd::notify("Debugger Event", "Add BreakAt at: " + cmd); } } } |
