diff -urpN -X /home/fletch/.diff.exclude 520-queuestat/Makefile 550-config_debug/Makefile
--- 520-queuestat/Makefile	Fri May 30 19:13:53 2003
+++ 550-config_debug/Makefile	Fri May 30 19:32:01 2003
@@ -50,8 +50,13 @@ TOPDIR	:= $(CURDIR)
 
 HOSTCC  	= gcc
 HOSTCXX  	= g++
+ifdef CONFIG_DEBUG_SYMBOLS
 HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 HOSTCXXFLAGS	= -O2
+else
+HOSTCFLAGS	= -Wall -Wstrict-prototypes -O2 -g -fomit-frame-pointer
+HOSTCXXFLAGS	= -O2 -g
+endif
 
 CROSS_COMPILE 	=
 
@@ -193,8 +198,13 @@ AFLAGS_KERNEL	=
 NOSTDINC_FLAGS  = -nostdinc -iwithprefix include
 
 CPPFLAGS	:= -D__KERNEL__ -Iinclude
+ifdef CONFIG_DEBUG_SYMBOLS
+CFLAGS 		:= $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -g \
+	  	   -fno-strict-aliasing -fno-common
+else
 CFLAGS 		:= $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
 	  	   -fno-strict-aliasing -fno-common
+endif
 AFLAGS		:= -D__ASSEMBLY__ $(CPPFLAGS)
 
 export	VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \
diff -urpN -X /home/fletch/.diff.exclude 520-queuestat/arch/i386/Kconfig 550-config_debug/arch/i386/Kconfig
--- 520-queuestat/arch/i386/Kconfig	Fri May 30 19:28:13 2003
+++ 550-config_debug/arch/i386/Kconfig	Fri May 30 19:32:01 2003
@@ -1576,6 +1576,10 @@ config KPROBES
 	  for kernel debugging, non-intrusive instrumentation and testing.  If
 	  in doubt, say "N".
 
+config DEBUG_SYMBOLS
+	bool "Get debug symbols (turns on -g)"
+	depends on DEBUG_KERNEL
+
 config DEBUG_STACKOVERFLOW
 	bool "Check for stack overflows"
 	depends on DEBUG_KERNEL