[Sorry for the delayed response, I'm a late comer to the thread, ]
Amit S. Kale wrote:
> I agree with Tom. KGDB without debug info is more or less unusable on
> MIPS (and most non-x86 architectures).
I guess it depends how you define unusable. gdb/kgdb are perfectly
usable on code that is not compiled with -g. You just don't have
symbolic debug. For some users, this is very useful as the goal is to
debug the _actual_ code that runs in production, NOT code compiled with -g.
> Someone who can run gdb without debug info, should also have the
> expertise to disable compilation of debug info during a kernel
> compilation. We don't need to add a specific Kconfig option for it.
This seems a bit heavy handed to me.
Instead of forcing it to be always on, why not just have it default to
being on, but still leave it as selectable by the user.
The patch below makes it default to on when kgdb is enabled, but allows
the user to manually disable it if desired.
Kevin
Index: linux-2.6.18/lib/Kconfig.kgdb
===================================================================
--- linux-2.6.18.orig/lib/Kconfig.kgdb
+++ linux-2.6.18/lib/Kconfig.kgdb
@@ -1,7 +1,6 @@
config WANT_EXTRA_DEBUG_INFORMATION
bool
- select DEBUG_INFO
select UNWIND_INFO
select FRAME_POINTER if X86 || SUPERH
select STACK_UNWIND if X86
Index: linux-2.6.18/lib/Kconfig.debug
===================================================================
--- linux-2.6.18.orig/lib/Kconfig.debug
+++ linux-2.6.18/lib/Kconfig.debug
@@ -448,6 +448,7 @@ config DEBUG_BUGVERBOSE
config DEBUG_INFO
bool "Compile the kernel with debug info"
depends on DEBUG_KERNEL
+ default WANT_EXTRA_DEBUG_INFORMATION
help
If you say Y here the resulting kernel image will include
debugging info resulting in a larger kernel image.
-------------------------------------------------------------------------
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