From d22623432898ab5226306132134b9c4a73164436 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 1 May 2005 09:49:45 +0000 Subject: [PATCH] Print symbol names if DBG is defined. svn path=/trunk/; revision=14905 --- reactos/ntoskrnl/include/internal/kd.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/include/internal/kd.h b/reactos/ntoskrnl/include/internal/kd.h index df9e6994526..d41a796a35a 100644 --- a/reactos/ntoskrnl/include/internal/kd.h +++ b/reactos/ntoskrnl/include/internal/kd.h @@ -79,13 +79,17 @@ typedef struct _KDB_MODULE_INFO # define KDB_CREATE_THREAD_HOOK(CONTEXT) do { } while (0) #endif -#ifdef KDBG +#if defined(KDBG) || defined(DBG) # define KeRosPrintAddress(ADDRESS) KdbSymPrintAddress(ADDRESS) +#else +# define KeRosPrintAddress(ADDRESS) KiRosPrintAddress(ADDRESS) +#endif + +#ifdef KDBG # define KdbInit() KdbpCliInit() # define KdbModuleLoaded(FILENAME) KdbpCliModuleLoaded(FILENAME) # define KDB_DELETEPROCESS_HOOK(PROCESS) KdbDeleteProcessHook(PROCESS) #else -# define KeRosPrintAddress(ADDRESS) KiRosPrintAddress(ADDRESS) # define KdbEnterDebuggerException(ER, PM, C, TF, F) kdHandleException # define KdbInit() do { } while (0) # define KdbEnter() do { } while (0)