mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
#define NOEXTAPI
|
||||||
#include <windbgkd.h>
|
#include <windbgkd.h>
|
||||||
#include <wdbgexts.h>
|
#include <wdbgexts.h>
|
||||||
|
#include <kddll.h>
|
||||||
#ifdef KDBG
|
#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 KdDebuggerInitialize0 KdpDebuggerInitialize0
|
||||||
#define KdDebuggerInitialize1 KdpDebuggerInitialize1
|
#define KdDebuggerInitialize1 KdpDebuggerInitialize1
|
||||||
#define KdSendPacket KdpSendPacket
|
#define KdSendPacket KdpSendPacket
|
||||||
#define KdReceivePacket KdpReceivePacket
|
#define KdReceivePacket KdpReceivePacket
|
||||||
#endif
|
#endif
|
||||||
#include <kddll.h>
|
|
||||||
#ifdef __ROS_ROSSYM__
|
#ifdef __ROS_ROSSYM__
|
||||||
#include <reactos/rossym.h>
|
#include <reactos/rossym.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
#undef KdDebuggerInitialize0
|
||||||
|
#undef KdDebuggerInitialize1
|
||||||
|
#undef KdSendPacket
|
||||||
|
#undef KdReceivePacket
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
#define KdpBufferSize (1024 * 512)
|
#define KdpBufferSize (1024 * 512)
|
||||||
|
@ -573,7 +578,7 @@ extern STRING KdbPromptString;
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdSendPacket(
|
KdpSendPacket(
|
||||||
IN ULONG PacketType,
|
IN ULONG PacketType,
|
||||||
IN PSTRING MessageHeader,
|
IN PSTRING MessageHeader,
|
||||||
IN PSTRING MessageData,
|
IN PSTRING MessageData,
|
||||||
|
@ -669,7 +674,7 @@ KdSendPacket(
|
||||||
|
|
||||||
KDSTATUS
|
KDSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdReceivePacket(
|
KdpReceivePacket(
|
||||||
IN ULONG PacketType,
|
IN ULONG PacketType,
|
||||||
OUT PSTRING MessageHeader,
|
OUT PSTRING MessageHeader,
|
||||||
OUT PSTRING MessageData,
|
OUT PSTRING MessageData,
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
#undef KdDebuggerInitialize0
|
||||||
|
#undef KdDebuggerInitialize1
|
||||||
|
#undef KdSendPacket
|
||||||
|
#undef KdReceivePacket
|
||||||
|
|
||||||
/* VARIABLES ***************************************************************/
|
/* VARIABLES ***************************************************************/
|
||||||
|
|
||||||
VOID NTAPI PspDumpThreads(BOOLEAN SystemThreads);
|
VOID NTAPI PspDumpThreads(BOOLEAN SystemThreads);
|
||||||
|
@ -82,7 +87,7 @@ KdpGetDebugMode(PCHAR Currentp2)
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDebuggerInitialize0(
|
KdpDebuggerInitialize0(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
@ -137,7 +142,7 @@ KdDebuggerInitialize0(
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDebuggerInitialize1(
|
KdpDebuggerInitialize1(
|
||||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||||
{
|
{
|
||||||
PLIST_ENTRY CurrentEntry;
|
PLIST_ENTRY CurrentEntry;
|
||||||
|
|
Loading…
Reference in a new issue