summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/KernelKit/TraceSrv.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-19 21:51:20 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-19 21:51:20 +0100
commit7ec77f42f45fb3b3479818636943923b9416a170 (patch)
tree33f608b06d865285fb6ef1eaf752ae77cbb16a17 /src/kernel/KernelKit/TraceSrv.h
parent465a99f17f9e8f56813f225f09a6a1a498be9deb (diff)
chore: {kernel, launch, libSystem}: Implementation and WiP improvements.v0.1.211
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/KernelKit/TraceSrv.h')
-rw-r--r--src/kernel/KernelKit/TraceSrv.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/kernel/KernelKit/TraceSrv.h b/src/kernel/KernelKit/TraceSrv.h
index 79fbd7da..9da48561 100644
--- a/src/kernel/KernelKit/TraceSrv.h
+++ b/src/kernel/KernelKit/TraceSrv.h
@@ -13,12 +13,36 @@ namespace TraceSrv {
inline constexpr auto kDebugCmdLen = 256U;
inline constexpr auto kDebugPort = 51820;
- /// \brief Debug Magic Value
inline constexpr auto kDebugMagic = "NE1.0.0;";
inline constexpr auto kDebugVersion = 0x0100;
inline constexpr auto kDebugDelim = ';';
inline constexpr auto kDebugEnd = '\r';
+ enum class TRACE_SOURCE_OPCODE {
+ kStop,
+ kContinue,
+ kStepIn,
+ kStepOver,
+ kStepOut,
+ kSetBreakpoint,
+ kRemoveBreakpoint,
+ kGetStackTrace,
+ kGetSourceMessage,
+ kGetVariables,
+ kEvaluateExpression,
+ kUnknown
+ };
+
+ inline constexpr auto kDebugSymbolLen = 0x0100;
+
+ struct TRACE_SOURCE_MESSAGE {
+ Int32 fType;
+ Int32 fChksum;
+ Char fSymbol[kDebugSymbolLen];
+ UInt32 fOffset;
+ UInt32 fOpcode;
+ };
+
} // namespace TraceSrv
} // namespace Kernel