[lldb-dev] [Bug 25070] New: SBThread::ReturnFromFrame does not work

via lldb-dev lldb-dev at lists.llvm.org
Tue Oct 6 04:25:28 PDT 2015


            Bug ID: 25070
           Summary: SBThread::ReturnFromFrame does not work
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: berykubik at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15010
  --> https://llvm.org/bugs/attachment.cgi?id=15010&action=edit
C++ source with test program

I'm using lldb 3.8 compiled from trunk, but I also experienced this issue in

When I use SBThread::ReturnFromFrame when in a C++ function that returns some
value, the SBValue doesn't get set, even though no error is returned. Is this
function currently implemented?
seems to imply that it's not.

Example script (I attached the C++ source test.cpp):

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(1) # wait for bp to be hit

thread = process.GetSelectedThread()
frame = thread.GetSelectedFrame()
value = lldb.SBValue()
error = thread.ReturnFromFrame(frame, value)
# error is marked as sucesss, but value contains nothing

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20151006/aa664f89/attachment.html>

More information about the lldb-dev mailing list