Added Dbg Stubs and moved old ones to correct header and files.

svn path=/trunk/; revision=10510
This commit is contained in:
Alex Ionescu 2004-08-13 05:00:35 +00:00
parent cd550a1f78
commit 760cc9dbc7
4 changed files with 108 additions and 60 deletions

View file

@ -1,10 +1,49 @@
#ifndef __INCLUDE_DDK_DBGFUNCS_H #ifndef __INCLUDE_DDK_DBGFUNCS_H
#define __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 DbgBreakPointWithStatus (ULONG Status);
VOID STDCALL DbgBreakPoint(VOID); VOID STDCALL DbgBreakPoint(VOID);
ULONG DbgPrint(PCH Format,...); ULONG DbgPrint(PCH Format,...);
VOID STDCALL DbgPrompt (PCH OutputString, PCH InputString, USHORT InputSize); 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 */ #endif /* __INCLUDE_DDK_DBGFUNCS_H */

View file

@ -38,45 +38,18 @@
/* /*
* @unimplemented * @unimplemented
*/ */
ULONG NTSTATUS
__cdecl STDCALL
DbgPrintReturnControlC( DbgLoadImageSymbols(
PCH Format, IN PUNICODE_STRING Name,
... IN ULONG Base,
IN ULONG Unknown3
) )
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
return 0; 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 NTSTATUS STDCALL
NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode, NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode,

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -33,7 +33,7 @@
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <internal/kd.h> #include <internal/kd.h>
#include <internal/debug.h>
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
#if 0 #if 0
@ -76,6 +76,35 @@ DbgPrint(PCH Format, ...)
return (ULONG)DebugString.Length; 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 * @unimplemented
@ -101,4 +130,33 @@ DbgPrompt (PCH OutputString,
// &Input); // &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 */ /* EOF */

View file

@ -17,26 +17,4 @@ DbgkForwardException(EXCEPTION_RECORD Er, ULONG FirstChance);
BOOLEAN BOOLEAN
DbgShouldPrint(PCH Filename); 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 */ #endif /* __INCLUDE_INTERNAL_DBG_H */