#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 380 of file debug.c.
382{
383 STRING NameString, CommandString;
384
385
390
391
393}
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 325 of file debug.c.
328{
331
332
335
336
338 if (NtHeader)
339 {
340
343 }
344 else
345 {
346
349 }
350
351
353}
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
#define BREAKPOINT_LOAD_SYMBOLS
◆ DbgPrint()
Definition at line 205 of file debug.c.
207{
210
211
214 -1,
221}
#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 228 of file debug.c.
232{
235
236
246}
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 253 of file debug.c.
255{
258
259
262 -1,
269}
◆ DbgPrompt()
Definition at line 276 of file debug.c.
279{
282
283
286
287
290
291
293}
ULONG NTAPI DebugPrompt(IN PSTRING Output, IN PSTRING Input)
_In_ ULONG MaximumResponseLength
◆ DbgQueryDebugFilterState()
Definition at line 300 of file debug.c.
302{
303
305}
NTSTATUS NTAPI NtQueryDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level)
◆ DbgSetDebugFilterState()
Definition at line 312 of file debug.c.
315{
316
318}
NTSTATUS NTAPI NtSetDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level, _In_ BOOLEAN State)
◆ DbgUnLoadImageSymbols()
Definition at line 360 of file debug.c.
363{
365
366
370
371
373}
#define BREAKPOINT_UNLOAD_SYMBOLS
◆ DebugPrint()
Definition at line 23 of file debug.c.
26{
27
33}
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 166 of file debug.c.
171{
172
179}
_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
106
107
109 }
110 else
111 {
112
114 }
115
116
119
120
122 {
123
130
131
133
134
137 }
138
139
141
142
143 if (HandleBreakpoint)
144 {
145
147 {
148
151 }
152 }
153
154
156
157
159}
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().