Odd behavior with souce files

David Relson relson@osagesoftware.com
Mon Dec 10 13:20:00 GMT 2001


At 02:19 PM 12/10/01, you wrote:
> > Date: Mon, 10 Dec 2001 13:46:30 -0500 (EST)
> > From: "Kevin R.J. Ellwood" <kellwood@ford.com>
> >
> > (gdb)
> > 2806    in malloc.c
> >
> > Needless to say, I don't want to debug malloc.

Sounds like you're using "step" when you should be using "next" ...

>Does it help to say "finish" whenever you wind up inside a library
>function?
>
> > Is there an option for gdb such that, if a source file is not found,
> > it won't try to step into that particular routine.
>
>GDB does that for me if the library functions have no debug info.  You
>could say "strip --strip-debug libc.a", for example.  But given the
>"finish" trick, I'd not bother (you could need the library debug info
>some day).



More information about the Gdb mailing list