diff -urpN -X /home/fletch/.diff.exclude 540-separate_pmd/Makefile 550-config_debug/Makefile --- 540-separate_pmd/Makefile Sun Apr 20 21:28:58 2003 +++ 550-config_debug/Makefile Sun Apr 20 22:22:27 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 = @@ -182,8 +187,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 540-separate_pmd/arch/i386/Kconfig 550-config_debug/arch/i386/Kconfig --- 540-separate_pmd/arch/i386/Kconfig Sun Apr 20 22:18:40 2003 +++ 550-config_debug/arch/i386/Kconfig Sun Apr 20 22:22:27 2003 @@ -1566,6 +1566,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