BasicDebug Class Fling OS
The basic kernel debugger code.
Inheritance Hierarchy

System Object
  Kernel.Debug BasicDebug

Namespace: Kernel.Debug
Assembly: Kernel (in Kernel.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[PluggedClassAttribute]
public static class BasicDebug

The BasicDebug type exposes the following members.

Methods

  NameDescription
Public methodStatic memberClearMessage
Clears the screen
Public methodStatic memberDisplayMessage
Displays the specified message to the screen.
Private methodStatic memberEnableDebug
Enables the debug interrupt handler
Private methodStatic memberExecute
The main execute method for the basic debugger
Public methodStatic memberInit
Initialises the basic debugger
Private methodStatic memberInitSerial
Initialises COM1 as serial connection to debug over
Private methodStatic memberInsertCommandsList
Inserts the debug commands into the ASM.
Private methodStatic memberInterruptHandler
Inserts the plug for the Int1 and Int3 interrupt handler.
Private methodStatic memberSendArguments
Sends the arguments values as they were before the interrupt. Requires the debugger to send it how many bytes for the arguments there are.
Private methodStatic memberSendBreakAddress
Sends the address of the last instruction that executed when the break occurred.
Private methodStatic memberSendBreakCmd
Sends the Break command.
Private methodStatic memberSendLocals
Sends the locals values as they were before the interrupt. Requires the debugger to send it how many bytes for the arguments there are.
Private methodStatic memberSendRegisters
Sends the register values as they were before the interrupt.
Public methodStatic memberSerial_ReadByte
Reads a byte from the debug serial port
Public methodStatic memberSerial_ReadUInt16
Reads a UInt16 from the debug serial port
Public methodStatic memberSerial_ReadUInt32
Reads a UInt32 from the debug serial port
Public methodStatic memberSerial_WriteByte
Writes the specified value to the debug serial port
Public methodStatic memberSerial_WriteString
Writes the specified value to the debug serial port
Public methodStatic memberSerial_WriteUInt16
Writes the specified value to the debug serial port
Public methodStatic memberSerial_WriteUInt32
Writes the specified value to the debug serial port
Private methodStatic memberWaitForCommand
Waits for a command from the debugger.
Top
Remarks

This is entirely made from plugged methods so that even if the kernel compiler is broken, the debugger will still work.
See Also