Index: arch/mips/config-shared.in =================================================================== RCS file: /home/cvs/linux/arch/mips/Attic/config-shared.in,v retrieving revision 1.1.2.48 diff -u -r1.1.2.48 config-shared.in --- arch/mips/config-shared.in 26 Feb 2003 21:14:23 -0000 1.1.2.48 +++ arch/mips/config-shared.in 3 Mar 2003 19:41:11 -0000 @@ -976,6 +976,7 @@ bool 'Are you using a crosscompiler' CONFIG_CROSSCOMPILE bool 'Enable run-time debugging' CONFIG_RUNTIME_DEBUG +bool 'Debugging symbols' CONFIG_DEBUG_INFO bool 'Remote GDB kernel debugging' CONFIG_KGDB dep_bool ' Console output to GDB' CONFIG_GDB_CONSOLE $CONFIG_KGDB if [ "$CONFIG_SIBYTE_SB1xxx_SOC" = "y" ]; then Index: arch/mips/Makefile =================================================================== RCS file: /home/cvs/linux/arch/mips/Makefile,v retrieving revision 1.78.2.23 diff -u -r1.78.2.23 Makefile --- arch/mips/Makefile 26 Feb 2003 21:14:23 -0000 1.78.2.23 +++ arch/mips/Makefile 3 Mar 2003 19:41:11 -0000 @@ -41,8 +41,8 @@ LINKFLAGS += -G 0 -static # -N MODFLAGS += -mlong-calls -ifdef CONFIG_KGDB -GCCFLAGS += -g +ifneq ($(CONFIG_DEBUG_INFO)$(CONFIG_KGDB),) +GCCFLAGS += -gstabs+ ifdef CONFIG_SB1XXX_CORELIS GCCFLAGS += -mno-sched-prolog -fno-omit-frame-pointer endif Index: arch/mips64/Makefile =================================================================== RCS file: /home/cvs/linux/arch/mips64/Makefile,v retrieving revision 1.22.2.27 diff -u -r1.22.2.27 Makefile --- arch/mips64/Makefile 26 Feb 2003 21:14:24 -0000 1.22.2.27 +++ arch/mips64/Makefile 3 Mar 2003 19:41:11 -0000 @@ -39,7 +39,7 @@ LINKFLAGS += -G 0 -static # -N MODFLAGS += -mlong-calls -ifdef CONFIG_KGDB +ifneq ($(CONFIG_DEBUG_INFO)$(CONFIG_KGDB),) GCCFLAGS += -g ifdef CONFIG_SB1XXX_CORELIS GCCFLAGS += -mno-sched-prolog -fno-omit-frame-pointer