On Sat, 2006-09-09 at 11:06 -0700, Tom Rini wrote: > On Fri, Sep 08, 2006 at 11:15:52PM +0400, Vitaly Wool wrote: > > On 9/8/06, Tom Rini <[EMAIL PROTECTED]> wrote: > > >When do you want KGDB compiled in, but not usable? Trying to debug a > > >module, and building the module with debug info, but not the kernel > > >itself? > > > > Well, that's one of the options. The other thing is, as Kevin Hilman > > states. there might be some cases in which a bug 'disappears' when the > > kernel is compiled with -g. > > I know that used to be a problem, but is that still a concern? If so, a > big enough concern to make it easy to get things wrong in other cases?
I'd wager 10 to 1 that compiling -g has no impact on performance. It did in the old days and with Sun's C compiler but GCC has fixed that problem about a decade ago. > > > BTW, why do you say that KGDB is not usable when debug info is not > > compiled in? You can still set a breakpoint and watch the variables > > etc. etc... > > Er, unless I'm missing something, you have to do that by manually > setting breakpoints/etc at the address, rather than symbolic names. > Which, IMHO, is a bit hard core :) You do have access to global variables and functions in code compiled without -g but that's a really horribly limiting environment to develop/debug in. I do see a need for being able to enable more envasive changes in the kernel with kgdb options. For enable compiling -O0 and converting static inline functions to simple static functions. I've never seen a case with gcc for needing to turn off -g. If gcc ever changes code behavior with -g enabled it's a very serious compiler bug. -piet > -- Piet Delaney Phone: (408) 200-5256 Blue Lane Technologies Fax: (408) 200-5299 10450 Bubb Rd. Cupertino, Ca. 95014 Email: [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- 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
