https://llvm.org/bugs/show_bug.cgi?id=25070

Jim Ingham <jing...@apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jing...@apple.com
         Resolution|---                         |INVALID

--- Comment #1 from Jim Ingham <jing...@apple.com> ---
ReturnFromFrame doesn't capture the return value from a given frame, rather it
FORCES a return from that frame without executing the rest of the code in the
frame, and optionally artificially sets the return value to the value passed
in.  So provided this actually did force a return from the current stack frame,
then it is behaving as designed.

If you want to capture the return value after executing the code from the
frame, then call SBThread::StepOut, and then check
SBThread::GetStopReturnValue.

I'll add some python autodoc to ReturnFromFrame to make clear what it does.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to