From 760cc9dbc76b8e1be536db103103c8e6976b815a Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Fri, 13 Aug 2004 05:00:35 +0000 Subject: [PATCH] Added Dbg Stubs and moved old ones to correct header and files. svn path=/trunk/; revision=10510 --- reactos/include/ddk/dbgfuncs.h | 41 +++++++++++++++- reactos/ntoskrnl/dbg/dbgctrl.c | 43 ++++------------- reactos/ntoskrnl/dbg/print.c | 62 ++++++++++++++++++++++++- reactos/ntoskrnl/include/internal/dbg.h | 22 --------- 4 files changed, 108 insertions(+), 60 deletions(-) diff --git a/reactos/include/ddk/dbgfuncs.h b/reactos/include/ddk/dbgfuncs.h index c08e712e0af..5c3105484ab 100644 --- a/reactos/include/ddk/dbgfuncs.h +++ b/reactos/include/ddk/dbgfuncs.h @@ -1,10 +1,49 @@ #ifndef __INCLUDE_DDK_DBGFUNCS_H #define __INCLUDE_DDK_DBGFUNCS_H -/* $Id: dbgfuncs.h,v 1.8 2003/06/07 16:16:38 chorns Exp $ */ +/* $Id: dbgfuncs.h,v 1.9 2004/08/13 05:00:35 ion Exp $ */ VOID STDCALL DbgBreakPointWithStatus (ULONG Status); VOID STDCALL DbgBreakPoint(VOID); ULONG DbgPrint(PCH Format,...); VOID STDCALL DbgPrompt (PCH OutputString, PCH InputString, USHORT InputSize); +ULONG +__cdecl +DbgPrintEx( + IN ULONG ComponentId, + IN ULONG Level, + IN PCH Format, + ... + ); + +ULONG +__cdecl +DbgPrintReturnControlC( + PCH Format, + ... + ); + +NTSTATUS +STDCALL +DbgQueryDebugFilterState( + IN ULONG ComponentId, + IN ULONG Level + ); + +NTSTATUS +STDCALL +DbgSetDebugFilterState( + IN ULONG ComponentId, + IN ULONG Level, + IN BOOLEAN State + ); + +NTSTATUS +STDCALL +DbgLoadImageSymbols( + IN PUNICODE_STRING Name, + IN ULONG Base, + IN ULONG Unknown3 + ); + #endif /* __INCLUDE_DDK_DBGFUNCS_H */ diff --git a/reactos/ntoskrnl/dbg/dbgctrl.c b/reactos/ntoskrnl/dbg/dbgctrl.c index a1206a39a0b..b73cb55688f 100644 --- a/reactos/ntoskrnl/dbg/dbgctrl.c +++ b/reactos/ntoskrnl/dbg/dbgctrl.c @@ -38,45 +38,18 @@ /* * @unimplemented */ -ULONG -__cdecl -DbgPrintReturnControlC( - PCH Format, - ... +NTSTATUS +STDCALL +DbgLoadImageSymbols( + IN PUNICODE_STRING Name, + IN ULONG Base, + IN ULONG Unknown3 ) { - UNIMPLEMENTED; - return 0; + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; } -/* - * @unimplemented - */ -STDCALL -NTSTATUS -DbgQueryDebugFilterState( - IN ULONG ComponentId, - IN ULONG Level - ) -{ - UNIMPLEMENTED; - return STATUS_NOT_IMPLEMENTED; -} - -/* - * @unimplemented - */ -STDCALL -NTSTATUS -DbgSetDebugFilterState( - IN ULONG ComponentId, - IN ULONG Level, - IN BOOLEAN State - ) -{ - UNIMPLEMENTED; - return STATUS_NOT_IMPLEMENTED; -} NTSTATUS STDCALL NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode, diff --git a/reactos/ntoskrnl/dbg/print.c b/reactos/ntoskrnl/dbg/print.c index e99f46a7044..11dd7945652 100644 --- a/reactos/ntoskrnl/dbg/print.c +++ b/reactos/ntoskrnl/dbg/print.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: print.c,v 1.17 2003/07/10 06:27:13 royce Exp $ +/* $Id: print.c,v 1.18 2004/08/13 05:00:35 ion Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -33,7 +33,7 @@ #include #include - +#include /* FUNCTIONS ****************************************************************/ #if 0 @@ -76,6 +76,35 @@ DbgPrint(PCH Format, ...) return (ULONG)DebugString.Length; } +/* + * @unimplemented + */ +ULONG +__cdecl +DbgPrintEx( + IN ULONG ComponentId, + IN ULONG Level, + IN PCH Format, + ... + ) +{ + UNIMPLEMENTED; + return 0; +} + +/* + * @unimplemented + */ +ULONG +__cdecl +DbgPrintReturnControlC( + PCH Format, + ... + ) +{ + UNIMPLEMENTED; + return 0; +} /* * @unimplemented @@ -101,4 +130,33 @@ DbgPrompt (PCH OutputString, // &Input); } +/* + * @unimplemented + */ +STDCALL +NTSTATUS +DbgQueryDebugFilterState( + IN ULONG ComponentId, + IN ULONG Level + ) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + +/* + * @unimplemented + */ +STDCALL +NTSTATUS +DbgSetDebugFilterState( + IN ULONG ComponentId, + IN ULONG Level, + IN BOOLEAN State + ) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + /* EOF */ diff --git a/reactos/ntoskrnl/include/internal/dbg.h b/reactos/ntoskrnl/include/internal/dbg.h index bebb68081c7..7f06b681036 100644 --- a/reactos/ntoskrnl/include/internal/dbg.h +++ b/reactos/ntoskrnl/include/internal/dbg.h @@ -17,26 +17,4 @@ DbgkForwardException(EXCEPTION_RECORD Er, ULONG FirstChance); BOOLEAN DbgShouldPrint(PCH Filename); -ULONG -__cdecl -DbgPrintReturnControlC( - PCH Format, - ... - ); - -STDCALL -NTSTATUS -DbgQueryDebugFilterState( - IN ULONG ComponentId, - IN ULONG Level - ); - -STDCALL -NTSTATUS -DbgSetDebugFilterState( - IN ULONG ComponentId, - IN ULONG Level, - IN BOOLEAN State - ); - #endif /* __INCLUDE_INTERNAL_DBG_H */