Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Stepping over shared library call
@ 2003-08-11 15:15 Kris Warkentin
  0 siblings, 0 replies; only message in thread
From: Kris Warkentin @ 2003-08-11 15:15 UTC (permalink / raw)
  To: Gdb@Sources.Redhat.Com

When I do a 'step' on a function that is in a shared library (such as
printf), what mechanisms/criteria does gdb use to determine whether to
single step all the way through it or just to stop on the next line of code?

I've observed that if the symbols are loaded for libc, gdb steps all the way
through the call but otherwise skips over it.  Is this expected behaviour?

I believe it is because one could have a situation where there is some debug
info in a shared lib (or a non-debug shared lib calls into a debug one).  If
this were the case, you'd want gdb to step until it finds some debug
information right?

Basically I'm planning on telling customers, "Use 'next' if you want to go
to the next line and only use step if you want to step into the call."  This
wouldn't be an issue if everyone just did local debugging but when you're
debugging a remote system, single stepping through a shared library call can
take a hellishly long time.

cheers,

Kris



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-11 15:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 15:15 Stepping over shared library call Kris Warkentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox