On Sun, Sep 10, 2006 at 02:29:44PM +0400, Vitaly Wool wrote:
> On 9/9/06, Piet Delaney <[EMAIL PROTECTED]> wrote:
> > 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.
> 
> Well, I don't see how it makes easy to get things wrong, first.

My assumption is that most users of KGDB really do want symbolic
debugging when they turn on KGDB.

> Then, I'm not speaking _only_ about performance. '-g' still has side
> effects and probably will have as long as we're living, and maybe even
> longer ;) For instance, during the remote debugging, gdb currently
> doesn't show the full stack with 'bt' command when the kernel image is
> compiled with -g as opposed to the case when it's compiled without,
> when the stack is shown normally.

That's a different kind of side-effect.  MIPS needs to do some of the
annotation stuff that was recently done for i386 and x86_64 so the
debugger can properly and symbolically unwind the stack.

-- 
Tom Rini

-------------------------------------------------------------------------
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

Reply via email to