Author: tkreuzer
Date: Fri Feb 28 14:06:36 2014
New Revision: 62351
URL:
http://svn.reactos.org/svn/reactos?rev=62351&view=rev
Log:
[NTOSKRNL]
In debug builds add an array of system service name strings to assist in debugging
Added:
branches/kernel-fun/reactos/ntoskrnl/ke/servicenames.c (with props)
Modified:
branches/kernel-fun/reactos/ntoskrnl/ntos.cmake
Added: branches/kernel-fun/reactos/ntoskrnl/ke/servicenames.c
URL:
http://svn.reactos.org/svn/reactos/branches/kernel-fun/reactos/ntoskrnl/ke/…
==============================================================================
--- branches/kernel-fun/reactos/ntoskrnl/ke/servicenames.c (added)
+++ branches/kernel-fun/reactos/ntoskrnl/ke/servicenames.c [iso-8859-1] Fri Feb 28
14:06:36 2014
@@ -0,0 +1,11 @@
+
+
+#define SVC_(name, argcount) "Nt" #name,
+
+const char * DbgSyscallNames[] =
+{
+#include <sysfuncs.h>
+};
+
+const unsigned int DbgNumberOfSyscalls = sizeof(DbgSyscallNames) /
sizeof(DbgSyscallNames[0]);
+
Propchange: branches/kernel-fun/reactos/ntoskrnl/ke/servicenames.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: branches/kernel-fun/reactos/ntoskrnl/ntos.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/kernel-fun/reactos/ntoskrnl/nto…
==============================================================================
--- branches/kernel-fun/reactos/ntoskrnl/ntos.cmake [iso-8859-1] (original)
+++ branches/kernel-fun/reactos/ntoskrnl/ntos.cmake [iso-8859-1] Fri Feb 28 14:06:36 2014
@@ -276,6 +276,10 @@
list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/zw.S)
+if (DBG)
+ list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/servicenames.c)
+endif()
+
if(ARCH STREQUAL "i386")
list(APPEND ASM_SOURCE
${REACTOS_SOURCE_DIR}/ntoskrnl/ex/i386/fastinterlck_asm.S