This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Step outer function call


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]