Re: Step outer function call

Michael Snyder
2008-01-29T06:44:28Z

On Tue, 2008-01-29 at 06:18 +0200, Eli Zaretskii wrote:
> > Date: Mon, 28 Jan 2008 15:19:39 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb@sourceware.org
> >
> > On Mon, Jan 28, 2008 at 12:12:52PM -0800, William K. Foster wrote:
> > > Hi,
> > >
> > > I don't know much about the debug formats, but it seems to me that since
> > > the debugger knows what line number it is on in the source code, it
> > > should be able to locate the last function call on that line number and
> > > enter it for this hypothetical command that many people seem to want.
> > >
> > > Am I missing something?
> >
> > Yes, generally we can't locate the last function call.
>
> Can we locate all of them? If so, perhaps we could (optionally)
> display a menu of them and ask the user where she wants to step.

Currently we can't locate any. Gdb does not know what a
call instruction looks like. There would have to be an arch
method, since call instructions look different on each target
architecture.