[llvm-bugs] [Bug 25081] New: SBThread::is_stopped shows incorrect value

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 6 15:25:02 PDT 2015


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

            Bug ID: 25081
           Summary: SBThread::is_stopped shows incorrect value
           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 15016
  --> https://llvm.org/bugs/attachment.cgi?id=15016&action=edit
C++ source code that loops endlessly

I'm using lldb 3.8 built from trunk. When I stop the process, it stops all the
threads, but their attribute is_stopped is not set properly. I've attached a
simple C++ source code that loops endlessly.

import lldb
import os
import time

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

time.sleep(1)

process.Stop()

time.sleep(1)

for t in process:
    assert t.is_stopped

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151006/cebe45e7/attachment.html>


More information about the llvm-bugs mailing list