#include <rtl.h>
#include <ndk/kdfuncs.h>
#include <debug.h>
Go to the source code of this file.
|
ULONG NTAPI | DebugPrint (IN PSTRING DebugString, IN ULONG ComponentId, IN ULONG Level) |
|
ULONG NTAPI | DebugPrompt (IN PSTRING Output, IN PSTRING Input) |
|
ULONG NTAPI | vDbgPrintExWithPrefixInternal (IN PCCH Prefix, IN ULONG ComponentId, IN ULONG Level, IN PCCH Format, IN va_list ap, IN BOOLEAN HandleBreakpoint) |
|
ULONG NTAPI | vDbgPrintExWithPrefix (IN PCCH Prefix, IN ULONG ComponentId, IN ULONG Level, IN PCCH Format, IN va_list ap) |
|
ULONG NTAPI | vDbgPrintEx (IN ULONG ComponentId, IN ULONG Level, IN PCCH Format, IN va_list ap) |
|
ULONG __cdecl | DbgPrint (PCCH Format,...) |
|
ULONG __cdecl | DbgPrintEx (IN ULONG ComponentId, IN ULONG Level, IN PCCH Format,...) |
|
ULONG __cdecl | DbgPrintReturnControlC (PCCH Format,...) |
|
ULONG NTAPI | DbgPrompt (IN PCCH Prompt, OUT PCH Response, IN ULONG MaximumResponseLength) |
|
NTSTATUS NTAPI | DbgQueryDebugFilterState (IN ULONG ComponentId, IN ULONG Level) |
|
NTSTATUS NTAPI | DbgSetDebugFilterState (IN ULONG ComponentId, IN ULONG Level, IN BOOLEAN State) |
|
VOID NTAPI | DbgLoadImageSymbols (IN PSTRING Name, IN PVOID Base, IN ULONG_PTR ProcessId) |
|
VOID NTAPI | DbgUnLoadImageSymbols (IN PSTRING Name, IN PVOID Base, IN ULONG_PTR ProcessId) |
|
VOID NTAPI | DbgCommandString (IN PCCH Name, IN PCCH Command) |
|
VOID NTAPI | RtlPopFrame (IN PTEB_ACTIVE_FRAME Frame) |
|
VOID NTAPI | RtlPushFrame (IN PTEB_ACTIVE_FRAME Frame) |
|
PTEB_ACTIVE_FRAME NTAPI | RtlGetFrame (VOID) |
|
◆ NDEBUG
◆ DbgCommandString()
Definition at line 381 of file debug.c.
383{
384 STRING NameString, CommandString;
385
386
391
392
394}
ACPI_SIZE strlen(const char *String)
#define BREAKPOINT_COMMAND_STRING
VOID NTAPI DebugService2(IN PVOID Argument1, IN PVOID Argument2, IN ULONG Service)
◆ DbgLoadImageSymbols()
Definition at line 326 of file debug.c.
329{
332
333
336
337
339 if (NtHeader)
340 {
341
344 }
345 else
346 {
347
350 }
351
352
354}
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
#define BREAKPOINT_LOAD_SYMBOLS
◆ DbgPrint()
Definition at line 206 of file debug.c.
208{
211
212
215 -1,
222}
#define DPFLTR_ERROR_LEVEL
ULONG NTAPI vDbgPrintExWithPrefixInternal(IN PCCH Prefix, IN ULONG ComponentId, IN ULONG Level, IN PCCH Format, IN va_list ap, IN BOOLEAN HandleBreakpoint)
void int int ULONGLONG int va_list * ap
◆ DbgPrintEx()
Definition at line 229 of file debug.c.
233{
236
237
247}
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
◆ DbgPrintReturnControlC()
Definition at line 254 of file debug.c.
256{
259
260
263 -1,
270}
◆ DbgPrompt()
Definition at line 277 of file debug.c.
280{
283
284
287
288
291
292
294}
ULONG NTAPI DebugPrompt(IN PSTRING Output, IN PSTRING Input)
_In_ ULONG MaximumResponseLength
◆ DbgQueryDebugFilterState()
Definition at line 301 of file debug.c.
303{
304
306}
NTSTATUS NTAPI NtQueryDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level)
◆ DbgSetDebugFilterState()
Definition at line 313 of file debug.c.
316{
317
319}
NTSTATUS NTAPI NtSetDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level, _In_ BOOLEAN State)
◆ DbgUnLoadImageSymbols()
Definition at line 361 of file debug.c.
364{
366
367
371
372
374}
#define BREAKPOINT_UNLOAD_SYMBOLS
◆ DebugPrint()
Definition at line 23 of file debug.c.
26{
27
33}
static CCHAR DebugString[256]
ULONG NTAPI DebugService(IN ULONG Service, IN PVOID Argument1, IN PVOID Argument2, IN PVOID Argument3, IN PVOID Argument4)
◆ DebugPrompt()
Definition at line 37 of file debug.c.
39{
40
46}
#define BREAKPOINT_PROMPT
Referenced by DbgPrompt().
◆ RtlGetFrame()
◆ RtlPopFrame()
◆ RtlPushFrame()
◆ vDbgPrintEx()
◆ vDbgPrintExWithPrefix()
Definition at line 167 of file debug.c.
172{
173
180}
_In_ __drv_aliasesMem PSTRING Prefix
◆ vDbgPrintExWithPrefixInternal()
Definition at line 52 of file debug.c.
58{
64
65
68 {
69
71 }
72
73
75
76
78 {
79
81 if (PrefixLength >
sizeof(
Buffer)) PrefixLength =
sizeof(
Buffer);
82
83
85
86
88 sizeof(
Buffer) - PrefixLength,
91 }
93 {
94
96
98 }
100
101
103 {
104
107
108
110 }
111 else
112 {
113
115 }
116
117
120
121
123 {
124
131
132
134
135
138 }
139
140
142
143
144 if (HandleBreakpoint)
145 {
146
148 {
149
152 }
153 }
154
155
157
158
160}
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
BOOLEAN NTAPI RtlpCheckForActiveDebugger(VOID)
VOID NTAPI RtlpClearInDbgPrint(VOID)
BOOLEAN NTAPI RtlpSetInDbgPrint(VOID)
#define EXCEPTION_EXECUTE_HANDLER
#define DBG_STATUS_CONTROL_C
NTSYSAPI VOID NTAPI RtlRaiseException(_In_ PEXCEPTION_RECORD ExceptionRecord)
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_BREAKPOINT
#define DBG_PRINTEXCEPTION_C
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
struct _EXCEPTION_RECORD * ExceptionRecord
ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]
__analysis_noreturn NTSYSAPI VOID NTAPI DbgBreakPointWithStatus(_In_ ULONG Status)
Referenced by DbgPrint(), DbgPrintEx(), DbgPrintReturnControlC(), vDbgPrintEx(), and vDbgPrintExWithPrefix().