2005-11-22 04:57:45 +00:00
|
|
|
/*++ NDK Version: 0095
|
|
|
|
|
|
|
|
Copyright (c) Alex Ionescu. All rights reserved.
|
|
|
|
|
|
|
|
Header Name:
|
|
|
|
|
|
|
|
kdtypes.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Type definitions for the Kernel Debugger.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
|
|
|
|
Alex Ionescu (alex.ionescu@reactos.com) 06-Oct-2004
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
2005-06-18 23:33:40 +00:00
|
|
|
#ifndef _KDTYPES_H
|
|
|
|
#define _KDTYPES_H
|
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// Dependencies
|
|
|
|
//
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// Debug Filter Levels
|
|
|
|
//
|
2005-09-23 07:19:47 +00:00
|
|
|
#define DPFLTR_ERROR_LEVEL 0
|
|
|
|
#define DPFLTR_WARNING_LEVEL 1
|
|
|
|
#define DPFLTR_TRACE_LEVEL 2
|
|
|
|
#define DPFLTR_INFO_LEVEL 3
|
|
|
|
#define DPFLTR_MASK 0x80000000
|
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// Debug Status Codes
|
|
|
|
//
|
2005-09-23 07:19:47 +00:00
|
|
|
#define DBG_STATUS_CONTROL_C 1
|
|
|
|
#define DBG_STATUS_SYSRQ 2
|
|
|
|
#define DBG_STATUS_BUGCHECK_FIRST 3
|
|
|
|
#define DBG_STATUS_BUGCHECK_SECOND 4
|
|
|
|
#define DBG_STATUS_FATAL 5
|
|
|
|
#define DBG_STATUS_DEBUG_CONTROL 6
|
|
|
|
#define DBG_STATUS_WORKER 7
|
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// DebugService Control Types
|
|
|
|
//
|
2005-09-23 07:19:47 +00:00
|
|
|
#define BREAKPOINT_PRINT 1
|
|
|
|
#define BREAKPOINT_PROMPT 2
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// Debug Control Codes for NtSystemDebugcontrol
|
|
|
|
//
|
2005-06-19 03:25:33 +00:00
|
|
|
typedef enum _DEBUG_CONTROL_CODE
|
|
|
|
{
|
2005-06-26 01:08:55 +00:00
|
|
|
DebugGetTraceInformation = 1,
|
|
|
|
DebugSetInternalBreakpoint,
|
|
|
|
DebugSetSpecialCall,
|
|
|
|
DebugClearSpecialCalls,
|
|
|
|
DebugQuerySpecialCalls,
|
|
|
|
DebugDbgBreakPoint,
|
|
|
|
DebugDbgLoadSymbols
|
2005-06-19 03:25:33 +00:00
|
|
|
} DEBUG_CONTROL_CODE;
|
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// Kernel Debugger Port Definition
|
|
|
|
//
|
2005-06-26 01:08:55 +00:00
|
|
|
typedef struct _KD_PORT_INFORMATION
|
2005-06-18 23:33:40 +00:00
|
|
|
{
|
|
|
|
ULONG ComPort;
|
|
|
|
ULONG BaudRate;
|
|
|
|
ULONG BaseAddress;
|
|
|
|
} KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
|
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
#endif // _KDTYPES_H
|