Vitaly Wool wrote: > Hi, > currently KGDB being selected forces the kernel to include debu infor > into the > image. Usually the kernel debug info should be enabled to makes full > use of > KGDB but in some circumstances/for some architectures (ie MIPS) it > might be > useful/convenient to be able to switch it off. > The patch attached patch adds ability to switch debug info off. > > Vitaly
Just curious, why don't you just strip the vmlinux to get rid of debug informations ?? Florian > ------------------------------------------------------------------------ > > Currently KGDB being selected forces the kernel to include debu infor into the > image. Usually the kernel debug info should be enabled to makes full use of > KGDB but in some circumstances/for some architectures (ie MIPS) it might be > useful/convenient to be able to switch it off. > This patch adds ability to switch debug info off. > > Signed-off-by: Vitaly Wool <[EMAIL PROTECTED]> > > lib/Kconfig.debug | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > Index: linux-2.6-kgdb.stg/lib/Kconfig.debug > =================================================================== > --- linux-2.6-kgdb.stg.orig/lib/Kconfig.debug > +++ linux-2.6-kgdb.stg/lib/Kconfig.debug > @@ -371,7 +371,7 @@ config RCU_TORTURE_TEST > > config WANT_EXTRA_DEBUG_INFORMATION > bool > - select DEBUG_INFO > + select DEBUG_INFO if KGDB_WANTS_EXTRA_DEBUG_INFO > select FRAME_POINTER if X86 || SUPERH > default n > > @@ -387,6 +387,17 @@ config KGDB > http://kgdb.sourceforge.net as well as in DocBook form > in Documentation/DocBook/. If unsure, say N. > > +config KGDB_WANTS_EXTRA_DEBUG_INFO > + bool "KGDB: Force debug info addition to the kernel image" > + depends on KGDB > + default y > + help > + This option forces the debug info compilation into the kernel > + image. Normally you'd like to have this option set to use the > + full power of KGDB but in some circumstances/for some > + architectures it might be useful/convenient to switch it off. > + If unsure, say Y. > + > config KGDB_CONSOLE > bool "KGDB: Console messages through gdb" > depends on KGDB > > ------------------------------------------------------------------------ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
