Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

debug3.c File Reference

#include "stdarg.h"
#include "stdio.h"
#include "string.h"
#include "ntrtlp.h"

Go to the source code of this file.

Functions

NTSTATUS DebugService (ULONG ServiceClass, PVOID Arg1, PVOID Arg2)
VOID _fptrap ()
NTSTATUS DebugPrint (IN PSTRING Output)
ULONG DebugPrompt (IN PSTRING Output, IN PSTRING Input)
VOID DebugLoadImageSymbols (IN PSTRING FileName, IN PKD_SYMBOLS_INFO SymbolInfo)
VOID DebugUnLoadImageSymbols (IN PSTRING FileName, IN PKD_SYMBOLS_INFO SymbolInfo)


Function Documentation

VOID _fptrap  ) 
 

Definition at line 41 of file debug3.c.

References VOID().

00041 {};

VOID DebugLoadImageSymbols IN PSTRING  FileName,
IN PKD_SYMBOLS_INFO  SymbolInfo
 

Definition at line 62 of file debug3.c.

References DebugService(), FileName, and PKD_SYMBOLS_INFO.

00066 { 00067 DebugService( BREAKPOINT_LOAD_SYMBOLS, FileName, SymbolInfo ); 00068 }

NTSTATUS DebugPrint IN PSTRING  Output  ) 
 

Definition at line 44 of file debug3.c.

References DebugService().

00047 { 00048 return DebugService( BREAKPOINT_PRINT, Output, 0 ); 00049 }

ULONG DebugPrompt IN PSTRING  Output,
IN PSTRING  Input
 

Definition at line 53 of file debug3.c.

References DebugService().

Referenced by DbgPrompt().

00057 { 00058 return DebugService( BREAKPOINT_PROMPT, Output, Input ); 00059 }

NTSTATUS DebugService ULONG  ServiceClass,
PVOID  Arg1,
PVOID  Arg2
 

Definition at line 71 of file debug3.c.

References NTSTATUS(), and NtWow64DebuggerCall().

Referenced by DebugLoadImageSymbols(), DebugPrint(), DebugPrompt(), and DebugUnLoadImageSymbols().

00079 : 00080 // 00081 // Allocate an ExceptionRecord, fill in data to allow exception 00082 // dispatch code to do the right thing with the service, and 00083 // call RtlRaiseException (NOT ExRaiseException!!!). 00084 // 00085 // Arguments: 00086 // ServiceClass - which call is to be performed 00087 // Arg1 - generic first argument 00088 // Arg2 - generic second argument 00089 // 00090 // Returns: 00091 // Whatever the exception returns in eax 00092 // 00093 //-- 00094 00095 { 00096 NTSTATUS RetValue; 00097 00098 #if defined(BUILD_WOW6432) 00099 00100 extern NTSTATUS NtWow64DebuggerCall(ULONG, PVOID, PVOID); 00101 RetValue = NtWow64DebuggerCall(ServiceClass, Arg1, Arg2); 00102 00103 #else 00104 _asm { 00105 mov eax, ServiceClass 00106 mov ecx, Arg1 00107 mov edx, Arg2 00108 00109 int 2dh ; Raise exception 00110 int 3 ; DO NOT REMOVE (See KiDebugService) 00111 00112 mov RetValue, eax 00113 00114 } 00115 #endif 00116 00117 return RetValue; 00118 }

VOID DebugUnLoadImageSymbols IN PSTRING  FileName,
IN PKD_SYMBOLS_INFO  SymbolInfo
 

Definition at line 127 of file debug3.c.

References DebugService(), and FileName.

00131 { 00132 DebugService( BREAKPOINT_UNLOAD_SYMBOLS, FileName, SymbolInfo ); 00133 }


Generated on Sat May 15 19:43:25 2004 for test by doxygen 1.3.7