Re: Step outer function call

Michael Snyder
2008-01-28T22:36:54Z

On Mon, 2008-01-28 at 12:12 -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?

Yeah. GDB doesn't do that sort of thing, involving
basically disassembling the instructions and grokking
what they do.

Well it does, in some special and limited circumstances
when it can't be avoided, but not in general. And those
cases where it does it are very fragile and difficult to
maintain. In general we'd like to have gdb do that kind
of thing less, not more.