This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Odd behavior with souce files
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- To: kellwood at ford dot com
- Cc: gdb at sourceware dot cygnus dot com
- Date: Mon, 10 Dec 2001 21:19:42 +0200
- Subject: Re: Odd behavior with souce files
- References: <200112101847.fBAIldE13015@dymwsm10.mailwatch.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> 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).