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: [MI] -exec-return or CLI 'return' do not trigger MI events


> For all I can tell, the 'return' command does not actually resume the
> target.  It just pops the stack.

I got caught by this tiny but important detail as well.  But if you look
at the GDB User's manual, it's very explicit about it.  Among many things,
it says:

    The return command does not resume execution; it leaves the program
    stopped in the state that would exist if the function had just returned.
    In contrast, the finish command (see Continuing and Stepping) resumes
    execution until the selected stack frame returns naturally. 

-- 
Joel


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