<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:berykubik@gmail.com" title="Jakub Beránek <berykubik@gmail.com>"> <span class="fn">Jakub Beránek</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - SBThread::ReturnFromFrame does not work"
   href="https://llvm.org/bugs/show_bug.cgi?id=25070">bug 25070</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - SBThread::ReturnFromFrame does not work"
   href="https://llvm.org/bugs/show_bug.cgi?id=25070#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - SBThread::ReturnFromFrame does not work"
   href="https://llvm.org/bugs/show_bug.cgi?id=25070">bug 25070</a>
              from <span class="vcard"><a class="email" href="mailto:berykubik@gmail.com" title="Jakub Beránek <berykubik@gmail.com>"> <span class="fn">Jakub Beránek</span></a>
</span></b>
        <pre>I tried to use StepOut, but it also doesn't seem to work.

import lldb
import os
import time

debugger = lldb.SBDebugger.Create()
target = debugger.CreateTarget("./test")
target.BreakpointCreateByLocation("test.cpp", 3)
process = target.LaunchSimple([], [], os.getcwd())

time.sleep(2) # wait for bp to be hit

thread = process.GetSelectedThread()
thread.StepOut()
value = thread.GetStopReturnValue() # No value

When I print the thread (print(thread)), it shows the stop reason and value:
"stop reason = step out\nReturn value: (int) $0 = 11", but I can't get the
value from the thread directly (both return_value and GetStopReturnValue()
return No value). And after the step out, the frames from the thread disappear
(before step out, the thread had 6 stack frames, after step out, all of them
disappeared).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>