This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Odd behavior with souce files


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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]