ReactOS 0.4.16-dev-329-g9223134
|
#include <ntoskrnl.h>
#include <reactos/buildno.h>
#include "kd.h"
#include "kdterminal.h"
#include <debug.h>
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | KdpBufferSize (1024 * 512) |
#define | KdpScreenLineLengthDefault 80 |
Variables | |
static BOOLEAN | KdpLoggingEnabled = FALSE |
static PCHAR | KdpDebugBuffer = NULL |
static volatile ULONG | KdpCurrentPosition = 0 |
static volatile ULONG | KdpFreeBytes = 0 |
static KSPIN_LOCK | KdpDebugLogSpinLock |
static KEVENT | KdpLoggerThreadEvent |
static HANDLE | KdpLogFileHandle |
ANSI_STRING | KdpLogFileName = RTL_CONSTANT_STRING("\\SystemRoot\\debug.log") |
static KSPIN_LOCK | KdpSerialSpinLock |
ULONG | SerialPortNumber = DEFAULT_DEBUG_PORT |
CPPORT | SerialPortInfo = {0, DEFAULT_DEBUG_BAUD_RATE, 0} |
static CHAR | KdpScreenLineBuffer [KdpScreenLineLengthDefault+1] = "" |
static ULONG | KdpScreenLineBufferPos = 0 |
static ULONG | KdpScreenLineLength = 0 |
KDP_DEBUG_MODE | KdpDebugMode |
LIST_ENTRY | KdProviders = {&KdProviders, &KdProviders} |
KD_DISPATCH_TABLE | DispatchTable [KdMax] = {0} |
PKDP_INIT_ROUTINE | InitRoutines [KdMax] |
KIRQL NTAPI KdbpAcquireLock | ( | _In_ PKSPIN_LOCK | SpinLock | ) |
Definition at line 64 of file kdio.c.
Referenced by KdbDebugPrint(), KdpPrintToLogFile(), and KdpSerialPrint().
Definition at line 91 of file kdio.c.
Referenced by KdbDebugPrint(), KdpPrintToLogFile(), and KdpSerialPrint().
Definition at line 576 of file kdio.c.
Referenced by KdIoReadLine(), KdReceivePacket(), and KdSendPacket().
Definition at line 547 of file kdio.c.
Referenced by KdIoPrintf(), KdIoPuts(), KdReceivePacket(), and KdSendPacket().
Definition at line 568 of file kdio.c.
Referenced by KdIoReadLine(), and KdReceivePacket().
HACK for FILE_APPEND_DATA ** Remove once CORE-18789 is fixed. ** Enforce to go to the end of file
END OF HACK
Definition at line 197 of file kdio.c.
Referenced by KdpDebugLogInit().
Definition at line 107 of file kdio.c.
Referenced by KdpDebugLogInit().
Definition at line 156 of file kdio.c.
Referenced by KdpDebugLogInit().
Definition at line 431 of file kdio.c.
Referenced by KdbpInternalEnter(), and KdpScreenInit().
Definition at line 515 of file kdio.c.
Referenced by KdpScreenInit().
Definition at line 463 of file kdio.c.
Referenced by KdpScreenInit().
Definition at line 450 of file kdio.c.
Referenced by KdbpInternalEnter().
Definition at line 392 of file kdio.c.
Referenced by KdpSerialInit().
Definition at line 365 of file kdio.c.
Referenced by KdpSerialInit().
KDSTATUS NTAPI KdReceivePacket | ( | _In_ ULONG | PacketType, |
_Out_ PSTRING | MessageHeader, | ||
_Out_ PSTRING | MessageData, | ||
_Out_ PULONG | DataLength, | ||
_Inout_ PKD_CONTEXT | Context | ||
) |
Definition at line 642 of file kdio.c.
VOID NTAPI KdSendPacket | ( | _In_ ULONG | PacketType, |
_In_ PSTRING | MessageHeader, | ||
_In_opt_ PSTRING | MessageData, | ||
_Inout_ PKD_CONTEXT | Context | ||
) |
Definition at line 602 of file kdio.c.
KD_DISPATCH_TABLE DispatchTable[KdMax] = {0} |
PKDP_INIT_ROUTINE InitRoutines[KdMax] |
Definition at line 50 of file kdio.c.
Referenced by KdDebuggerInitialize0().
Definition at line 31 of file kdio.c.
Referenced by KdpLoggerThread(), and KdpPrintToLogFile().
Definition at line 30 of file kdio.c.
Referenced by KdpDebugLogInit(), KdpLoggerThread(), and KdpPrintToLogFile().
|
static |
Definition at line 33 of file kdio.c.
Referenced by KdpDebugLogInit(), and KdpPrintToLogFile().
KDP_DEBUG_MODE KdpDebugMode |
Definition at line 46 of file kdio.c.
Referenced by KdbpInternalEnter(), KdDebuggerInitialize0(), KdpDebugLogInit(), KdpGetDebugMode(), KdpGetTerminalSettings(), KdpInitTerminal(), KdpScreenInit(), KdpSerialInit(), KdpUpdateTerminalSize(), and KdSendPacket().
Definition at line 32 of file kdio.c.
Referenced by KdpDebugLogInit(), KdpLoggerThread(), and KdpPrintToLogFile().
|
static |
Definition at line 35 of file kdio.c.
Referenced by KdpDebugLogInit(), and KdpLoggerThread().
ANSI_STRING KdpLogFileName = RTL_CONSTANT_STRING("\\SystemRoot\\debug.log") |
Definition at line 36 of file kdio.c.
Referenced by KdpDebugLogInit(), and KdpGetDebugMode().
|
static |
Definition at line 34 of file kdio.c.
Referenced by KdpDebugLogInit(), KdpLoggerThread(), and KdpPrintToLogFile().
Definition at line 29 of file kdio.c.
Referenced by KdpLoggerThread(), and KdpPrintToLogFile().
LIST_ENTRY KdProviders = {&KdProviders, &KdProviders} |
Definition at line 47 of file kdio.c.
Referenced by KdbInitialize(), KdDebuggerInitialize1(), KdIoPrintString(), KdpDebugLogInit(), KdpDriverReinit(), KdpScreenInit(), and KdpSerialInit().
|
static |
Definition at line 43 of file kdio.c.
Referenced by KdpScreenPrint().
|
static |
Definition at line 44 of file kdio.c.
Referenced by KdpScreenPrint().
|
static |
Definition at line 44 of file kdio.c.
Referenced by KdpScreenPrint().
|
static |
Definition at line 38 of file kdio.c.
Referenced by KdpSerialInit(), and KdpSerialPrint().
CPPORT SerialPortInfo = {0, DEFAULT_DEBUG_BAUD_RATE, 0} |
Definition at line 40 of file kdio.c.
Referenced by KdbpSendCommandSerial(), KdbpTryGetCharSerial(), KdpGetDebugMode(), KdpSerialInit(), and KdpSerialPrint().
ULONG SerialPortNumber = DEFAULT_DEBUG_PORT |
Definition at line 39 of file kdio.c.
Referenced by KdpGetDebugMode(), and KdpSerialInit().