summaryrefslogtreecommitdiffhomepage
path: root/dev/LibDebugger/src/NeKernelContractCLI.cc
blob: 1f05ff27395433ab0ebf8a68f350a18430e6773c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/***
  LibDebugger
  (C) 2025 Amlal El Mahrouss
  File: NeKernelContract.cc
  Purpose: NeKernel Debugger CLI.
*/

#ifdef LD_NEKERNEL_DEBUGGER

#include <LibCompiler/Defines.h>
#include <LibDebugger/NeKernelContract.h>
#include <Vendor/Dialogs.h>

#include <cstdint>
#include <iostream>
#include <string>

#include <LibDebugger/CommonCLI.inl>

using namespace LibDebugger::NeKernel;

LIBCOMPILER_MODULE(DebuggerNeKernel) {
    pfd::notify("Debugger Event",
                "Kernel Debugger\n(C) 2025 Amlal El Mahrouss, all rights reserved.");
  
    if (argc >= 3 && std::string(argv[1]) == "-p" && argv[2] != nullptr) {
      kPath = argv[2];
      kStdOut << "[+] Kernel image set to: " << kPath << "\n";
    }

    
    return EXIT_SUCCESS;
}

#endif // LD_NEKERNEL_DEBUGGER