mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTOS:KD] In KDBG, introduce alternate function names, so we can call real Kd* functions
CORE-10749
This commit is contained in:
parent
3fb2906667
commit
5162bf1060
3 changed files with 38 additions and 5 deletions
|
@ -88,13 +88,36 @@
|
|||
#define NOEXTAPI
|
||||
#include <windbgkd.h>
|
||||
#include <wdbgexts.h>
|
||||
#include <kddll.h>
|
||||
#ifdef KDBG
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdpDebuggerInitialize0(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL);
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdpDebuggerInitialize1(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL);
|
||||
VOID
|
||||
NTAPI
|
||||
KdpSendPacket(
|
||||
IN ULONG PacketType,
|
||||
IN PSTRING MessageHeader,
|
||||
IN PSTRING MessageData,
|
||||
IN OUT PKD_CONTEXT KdContext);
|
||||
KDSTATUS
|
||||
NTAPI
|
||||
KdpReceivePacket(
|
||||
IN ULONG PacketType,
|
||||
OUT PSTRING MessageHeader,
|
||||
OUT PSTRING MessageData,
|
||||
OUT PULONG DataLength,
|
||||
IN OUT PKD_CONTEXT Context);
|
||||
#define KdDebuggerInitialize0 KdpDebuggerInitialize0
|
||||
#define KdDebuggerInitialize1 KdpDebuggerInitialize1
|
||||
#define KdSendPacket KdpSendPacket
|
||||
#define KdReceivePacket KdpReceivePacket
|
||||
#endif
|
||||
#include <kddll.h>
|
||||
#ifdef __ROS_ROSSYM__
|
||||
#include <reactos/rossym.h>
|
||||
#endif
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#undef KdDebuggerInitialize0
|
||||
#undef KdDebuggerInitialize1
|
||||
#undef KdSendPacket
|
||||
#undef KdReceivePacket
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
#define KdpBufferSize (1024 * 512)
|
||||
|
@ -573,7 +578,7 @@ extern STRING KdbPromptString;
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
KdSendPacket(
|
||||
KdpSendPacket(
|
||||
IN ULONG PacketType,
|
||||
IN PSTRING MessageHeader,
|
||||
IN PSTRING MessageData,
|
||||
|
@ -669,7 +674,7 @@ KdSendPacket(
|
|||
|
||||
KDSTATUS
|
||||
NTAPI
|
||||
KdReceivePacket(
|
||||
KdpReceivePacket(
|
||||
IN ULONG PacketType,
|
||||
OUT PSTRING MessageHeader,
|
||||
OUT PSTRING MessageData,
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#undef KdDebuggerInitialize0
|
||||
#undef KdDebuggerInitialize1
|
||||
#undef KdSendPacket
|
||||
#undef KdReceivePacket
|
||||
|
||||
/* VARIABLES ***************************************************************/
|
||||
|
||||
VOID NTAPI PspDumpThreads(BOOLEAN SystemThreads);
|
||||
|
@ -82,7 +87,7 @@ KdpGetDebugMode(PCHAR Currentp2)
|
|||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdDebuggerInitialize0(
|
||||
KdpDebuggerInitialize0(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||
{
|
||||
ULONG i;
|
||||
|
@ -137,7 +142,7 @@ KdDebuggerInitialize0(
|
|||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KdDebuggerInitialize1(
|
||||
KdpDebuggerInitialize1(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||
{
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
|
|
Loading…
Reference in a new issue