Modified LdrLoadModule() to return NTSTATUS.
[reactos.git] / reactos / ntoskrnl / include / internal / kd.h
1 /* $Id: kd.h,v 1.9 2002/05/16 06:39:30 ekohl Exp $
2 *
3 * kernel debugger prototypes
4 */
5
6 #ifndef __INCLUDE_INTERNAL_KERNEL_DEBUGGER_H
7 #define __INCLUDE_INTERNAL_KERNEL_DEBUGGER_H
8
9 #include <internal/ke.h>
10
11 #define KD_DEBUG_DISABLED 0x00
12 #define KD_DEBUG_GDB 0x01
13 #define KD_DEBUG_PICE 0x02
14 #define KD_DEBUG_SCREEN 0x04
15 #define KD_DEBUG_SERIAL 0x08
16 #define KD_DEBUG_BOCHS 0x10
17 #define KD_DEBUG_FILELOG 0x20
18
19 extern ULONG KdDebugState;
20
21 KD_PORT_INFORMATION GdbPortInfo;
22 KD_PORT_INFORMATION LogPortInfo;
23
24 typedef enum _KD_CONTINUE_TYPE
25 {
26 kdContinue = 0,
27 kdDoNotHandleException,
28 kdHandleException
29 } KD_CONTINUE_TYPE;
30
31 ULONG
32 KdpPrintString (PANSI_STRING String);
33
34 VOID
35 DebugLogWrite(PCH String);
36 VOID
37 DebugLogInit(VOID);
38 VOID
39 DebugLogInit2(VOID);
40
41 VOID
42 KdInit1(VOID);
43
44 VOID
45 KdInit2(VOID);
46
47 VOID
48 KdPutChar(UCHAR Value);
49
50 UCHAR
51 KdGetChar(VOID);
52
53 VOID
54 KdGdbStubInit();
55
56 VOID
57 KdGdbDebugPrint (LPSTR Message);
58
59 VOID
60 KdDebugPrint (LPSTR Message);
61
62 KD_CONTINUE_TYPE
63 KdEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
64 PCONTEXT Context,
65 PKTRAP_FRAME TrapFrame);
66
67 #endif /* __INCLUDE_INTERNAL_KERNEL_DEBUGGER_H */