Merge in wrappers with DBG setting as requested

svn path=/trunk/; revision=14805
This commit is contained in:
Alex Ionescu 2005-04-25 18:31:20 +00:00
parent a893ce48dd
commit a3bf890534
4 changed files with 9 additions and 10 deletions

View file

@ -23,9 +23,9 @@ KDBG := 0
#
# Whether to compile for debugging
# Enabling this enables ASSERTS, GDB and Special Debug Routines
#
DBG := 0
GDB := 1
#
# Whether to compile a multiprocessor or single processor version

View file

@ -332,8 +332,13 @@ OBJECTS_KD = \
kd/kdinit.o \
kd/kdmain.o \
kd/kdio.o \
ifeq ($(DBG), 1)
OBJECTS_KD := \
$(OBJECTS_KD) \
kd/wrappers/gdbstub.o \
kd/wrappers/bochs.o
endif
# User-Mode Debugging (Dbgk)
OBJECTS_DBGK = \

View file

@ -12,10 +12,8 @@
struct _KD_DISPATCH_TABLE;
#ifdef GDB
#ifdef DBG
#include "kdgdb.h"
#endif
#ifdef BOCHS
#include "kdbochs.h"
#endif

View file

@ -34,7 +34,7 @@ KdpGetWrapperDebugMode(PCHAR Currentp2,
{
PCHAR p2 = Currentp2;
#ifdef BOCHS
#ifdef DBG
/* Check for BOCHS Debugging */
if (!_strnicmp(p2, "BOCHS", 5))
{
@ -43,9 +43,7 @@ KdpGetWrapperDebugMode(PCHAR Currentp2,
KdpDebugMode.Bochs = TRUE;
WrapperInitRoutine = KdpBochsInit;
}
#endif
#ifdef GDB
/* Check for GDB Debugging */
if (!_strnicmp(p2, "GDB", 3))
{
@ -62,9 +60,7 @@ KdpGetWrapperDebugMode(PCHAR Currentp2,
PortInfo.ComPort = DEFAULT_DEBUG_PORT;
PortInfo.BaudRate = DEFAULT_DEBUG_BAUD_RATE;
}
#endif
#ifdef ICE
/* Check for PICE Debugging */
else if (!_strnicmp(p2, "PICE", 4))
{