This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Step outer function call
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. The problem
here is "last" - a source line can be broken into many pieces and
contain arbitrary flow control. We'd have to essentially uncompile
the code to figure it out.
--
Daniel Jacobowitz
CodeSourcery