mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
[KDROSDBG-NTOS]
Put the 3 helper COM functions into KDBG directly. svn path=/branches/kd++/; revision=58970
This commit is contained in:
parent
cbdc727f61
commit
0811c4fabe
|
@ -1,13 +1,6 @@
|
||||||
|
|
||||||
spec2def(kdcom.dll kdrosdbg.spec ADD_IMPORTLIB)
|
spec2def(kdcom.dll kdrosdbg.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
if(ARCH STREQUAL "i386")
|
|
||||||
list(APPEND SOURCE i386/kdbg.c)
|
|
||||||
elseif(ARCH STREQUAL "amd64")
|
|
||||||
list(APPEND SOURCE i386/kdbg.c)
|
|
||||||
elseif(ARCH STREQUAL "arm")
|
|
||||||
list(APPEND SOURCE arm/kdbg.c)
|
|
||||||
endif(ARCH STREQUAL "i386")
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
kdrosdbg.c
|
kdrosdbg.c
|
||||||
kdrosdbg.rc
|
kdrosdbg.rc
|
||||||
|
|
|
@ -1,13 +1,8 @@
|
||||||
1 stdcall KdD0Transition()
|
@ stdcall KdD0Transition()
|
||||||
2 stdcall KdD3Transition()
|
@ stdcall KdD3Transition()
|
||||||
3 stdcall KdDebuggerInitialize0(ptr)
|
@ stdcall KdDebuggerInitialize0(ptr)
|
||||||
4 stdcall KdDebuggerInitialize1(ptr)
|
@ stdcall KdDebuggerInitialize1(ptr)
|
||||||
5 stdcall KdReceivePacket(long ptr ptr ptr ptr)
|
@ stdcall KdReceivePacket(long ptr ptr ptr ptr)
|
||||||
6 stdcall KdRestore(long)
|
@ stdcall KdRestore(long)
|
||||||
7 stdcall KdSave(long)
|
@ stdcall KdSave(long)
|
||||||
8 stdcall KdSendPacket(long ptr ptr ptr)
|
@ stdcall KdSendPacket(long ptr ptr ptr)
|
||||||
|
|
||||||
; Legacy KD
|
|
||||||
@ stdcall KdPortInitializeEx(ptr long)
|
|
||||||
@ stdcall KdPortGetByteEx(ptr ptr)
|
|
||||||
@ stdcall KdPortPutByteEx(ptr long)
|
|
||||||
|
|
|
@ -363,6 +363,7 @@ endif()
|
||||||
if(NOT _WINKD_)
|
if(NOT _WINKD_)
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
|
kd/i386/kdbg.c
|
||||||
kd/i386/kdmemsup.c
|
kd/i386/kdmemsup.c
|
||||||
kd/wrappers/gdbstub.c)
|
kd/wrappers/gdbstub.c)
|
||||||
if(KDBG)
|
if(KDBG)
|
||||||
|
@ -372,6 +373,7 @@ if(NOT _WINKD_)
|
||||||
elseif(ARCH STREQUAL "amd64")
|
elseif(ARCH STREQUAL "amd64")
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
kd/amd64/kd.c
|
kd/amd64/kd.c
|
||||||
|
kd/i386/kdbg.c # Use the x86 file
|
||||||
kd/amd64/kdmemsup.c)
|
kd/amd64/kdmemsup.c)
|
||||||
if(KDBG)
|
if(KDBG)
|
||||||
list(APPEND ASM_SOURCE kdbg/amd64/kdb_help.S)
|
list(APPEND ASM_SOURCE kdbg/amd64/kdb_help.S)
|
||||||
|
@ -379,6 +381,8 @@ if(NOT _WINKD_)
|
||||||
kdbg/amd64/i386-dis.c
|
kdbg/amd64/i386-dis.c
|
||||||
kdbg/amd64/kdb.c)
|
kdbg/amd64/kdb.c)
|
||||||
endif()
|
endif()
|
||||||
|
elseif(ARCH STREQUAL "arm")
|
||||||
|
list(APPEND SOURCE kd/arm/kdbg.c)
|
||||||
elseif(ARCH STREQUAL "powerpc")
|
elseif(ARCH STREQUAL "powerpc")
|
||||||
list(APPEND SOURCE kd/wrappers/gdbstub_powerpc.c)
|
list(APPEND SOURCE kd/wrappers/gdbstub_powerpc.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -8,16 +8,8 @@
|
||||||
|
|
||||||
/* INCLUDES *******************************************************************/
|
/* INCLUDES *******************************************************************/
|
||||||
|
|
||||||
#define NOEXTAPI
|
#include <ntoskrnl.h>
|
||||||
#include <ntifs.h>
|
|
||||||
#include <arc/arc.h>
|
|
||||||
#include <halfuncs.h>
|
|
||||||
#include <windbgkd.h>
|
|
||||||
#include <ioaccess.h> /* port intrinsics */
|
|
||||||
#include <cportlib/cportlib.h>
|
|
||||||
#include <arm/peripherals/pl011.h>
|
#include <arm/peripherals/pl011.h>
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
@ -33,6 +25,13 @@ CPPORT DefaultPort = {0, 0, 0};
|
||||||
|
|
||||||
/* REACTOS FUNCTIONS **********************************************************/
|
/* REACTOS FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdDebuggerInitialize1(IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||||
|
{
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortInitializeEx(IN PCPPORT PortInformation,
|
KdPortInitializeEx(IN PCPPORT PortInformation,
|
|
@ -9,15 +9,7 @@
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
|
||||||
#define NOEXTAPI
|
#include <ntoskrnl.h>
|
||||||
#include <ntifs.h>
|
|
||||||
#include <arc/arc.h>
|
|
||||||
#include <halfuncs.h>
|
|
||||||
#include <windbgkd.h>
|
|
||||||
#include <ioaccess.h> /* port intrinsics */
|
|
||||||
#include <cportlib/cportlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
@ -46,6 +38,14 @@ const ULONG BaseArray[] = {0, 0xF1012000};
|
||||||
|
|
||||||
/* REACTOS FUNCTIONS **********************************************************/
|
/* REACTOS FUNCTIONS **********************************************************/
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KdDebuggerInitialize1(
|
||||||
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock OPTIONAL)
|
||||||
|
{
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KdPortInitializeEx(
|
KdPortInitializeEx(
|
Loading…
Reference in a new issue