|
ReactOS 0.4.16-dev-2498-g8632030
|
#include <ntoskrnl.h>#include <reactos/buildno.h>#include "kd.h"#include "kdterminal.h"#include <cportlib/uartinfo.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 65 of file kdio.c.
Referenced by KdbDebugPrint(), KdpPrintToLogFile(), and KdpSerialPrint().
Definition at line 92 of file kdio.c.
Referenced by KdbDebugPrint(), KdpPrintToLogFile(), and KdpSerialPrint().
Definition at line 577 of file kdio.c.
Referenced by KdIoReadLine(), KdReceivePacket(), and KdSendPacket().
Definition at line 548 of file kdio.c.
Referenced by KdIoPrintf(), KdIoPuts(), KdReceivePacket(), and KdSendPacket().
Definition at line 569 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 198 of file kdio.c.
Referenced by KdpDebugLogInit().
Definition at line 108 of file kdio.c.
Referenced by KdpDebugLogInit().
Definition at line 157 of file kdio.c.
Referenced by KdpDebugLogInit().
Definition at line 432 of file kdio.c.
Referenced by KdbpInternalEnter(), and KdpScreenInit().
Definition at line 516 of file kdio.c.
Referenced by KdpScreenInit().
Definition at line 464 of file kdio.c.
Referenced by KdpScreenInit().
Definition at line 451 of file kdio.c.
Referenced by KdbpInternalEnter().
Definition at line 393 of file kdio.c.
Referenced by KdpSerialInit().
Definition at line 366 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 708 of file kdio.c.
| VOID NTAPI KdSendPacket | ( | _In_ ULONG | PacketType, |
| _In_ PSTRING | MessageHeader, | ||
| _In_opt_ PSTRING | MessageData, | ||
| _Inout_ PKD_CONTEXT | Context | ||
| ) |
Definition at line 603 of file kdio.c.
| KD_DISPATCH_TABLE DispatchTable[KdMax] = {0} |
| PKDP_INIT_ROUTINE InitRoutines[KdMax] |
Definition at line 51 of file kdio.c.
Referenced by KdDebuggerInitialize0().
Definition at line 32 of file kdio.c.
Referenced by KdpLoggerThread(), and KdpPrintToLogFile().
Definition at line 31 of file kdio.c.
Referenced by KdpDebugLogInit(), KdpLoggerThread(), and KdpPrintToLogFile().
|
static |
Definition at line 34 of file kdio.c.
Referenced by KdpDebugLogInit(), and KdpPrintToLogFile().
| KDP_DEBUG_MODE KdpDebugMode |
Definition at line 47 of file kdio.c.
Referenced by KdbpInternalEnter(), KdDebuggerInitialize0(), KdpDebugLogInit(), KdpGetDebugMode(), KdpGetTerminalSettings(), KdpInitTerminal(), KdpScreenInit(), KdpSerialInit(), KdpUpdateTerminalSize(), and KdSendPacket().
Definition at line 33 of file kdio.c.
Referenced by KdpDebugLogInit(), KdpLoggerThread(), and KdpPrintToLogFile().
|
static |
Definition at line 36 of file kdio.c.
Referenced by KdpDebugLogInit(), and KdpLoggerThread().
| ANSI_STRING KdpLogFileName = RTL_CONSTANT_STRING("\\SystemRoot\\debug.log") |
Definition at line 37 of file kdio.c.
Referenced by KdpDebugLogInit(), and KdpGetDebugMode().
|
static |
Definition at line 35 of file kdio.c.
Referenced by KdpDebugLogInit(), KdpLoggerThread(), and KdpPrintToLogFile().
Definition at line 30 of file kdio.c.
Referenced by KdpLoggerThread(), and KdpPrintToLogFile().
| LIST_ENTRY KdProviders = {&KdProviders, &KdProviders} |
Definition at line 48 of file kdio.c.
Referenced by KdbInitialize(), KdDebuggerInitialize1(), KdIoPrintString(), KdpDebugLogInit(), KdpDriverReinit(), KdpScreenInit(), and KdpSerialInit().
|
static |
Definition at line 44 of file kdio.c.
Referenced by KdpScreenPrint().
|
static |
Definition at line 45 of file kdio.c.
Referenced by KdpScreenPrint().
|
static |
Definition at line 45 of file kdio.c.
Referenced by KdpScreenPrint().
|
static |
Definition at line 39 of file kdio.c.
Referenced by KdpSerialInit(), and KdpSerialPrint().
| CPPORT SerialPortInfo = {0, DEFAULT_DEBUG_BAUD_RATE, 0} |
Definition at line 41 of file kdio.c.
Referenced by KdbpSendCommandSerial(), KdbpTryGetCharSerial(), KdDebuggerInitialize0(), KdpGetDebugMode(), KdpSerialInit(), and KdpSerialPrint().
| ULONG SerialPortNumber = DEFAULT_DEBUG_PORT |
Definition at line 40 of file kdio.c.
Referenced by KdpGetDebugMode(), and KdpSerialInit().