Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Step outer function call
@ 2008-01-28 19:55 William K. Foster
  2008-01-28 20:03 ` Marc Khouzam
  2008-01-28 20:10 ` Daniel Jacobowitz
  0 siblings, 2 replies; 9+ messages in thread
From: William K. Foster @ 2008-01-28 19:55 UTC (permalink / raw)
  To: gdb

Hello,

I often find that when stepping through code, I would like to step into 
the outer most function call on a line of code, but the only way I see 
to do this is to step into each inner call and finish them until 
reaching the outer call.  For example:

  foo(bar(), baz());

If on the above line and I step, I first enter bar(), then baz(), and 
finally foo().

The vast majority of the time, I want to enter foo().

Is there a command or script to accomplish this?

If not, is this a reasonable feature request for gdb?

Thanks.

-William


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-29  6:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-28 19:55 Step outer function call William K. Foster
2008-01-28 20:03 ` Marc Khouzam
2008-01-28 20:10 ` Daniel Jacobowitz
2008-01-28 20:13   ` William K. Foster
2008-01-28 20:20     ` Daniel Jacobowitz
2008-01-29  4:19       ` Eli Zaretskii
2008-01-29  6:44         ` Michael Snyder
2008-01-28 22:36     ` Michael Snyder
2008-01-28 23:00     ` Nick Roberts

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