[Bug 28455] New: Thread state not in sync with process state

Bug ID 28455
Summary Thread state not in sync with process state
Product lldb
Version 3.8
Hardware PC
OS Windows NT
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter marius.trandafir@ni.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

Created attachment 16710 [details]
repro code snippet

When the process state is SBProcess::eStateStopped, both SBThread::IsSuspended
and SBThread::IsStopped return false [ thread.m_state is eStateUnloading and
thread.m_resume_state is eStateRunning ]

Is this the intended behavior ?

I used the attached code to reproduce the problem.
The debuggee can be a C/C++ "hello world" app.

labath@google.com changed bug 28455

What Removed Added
CC labath@google.com
Resolution DUPLICATE

Comment # 1 on bug 28455 from labath@google.com

Yes, the IsStopped issue is a known bug. The suspended flag should work, but it
does something else: it reflect whether you have asked the thread not to run
with SBThread.Suspend().

*** This bug has been marked as a duplicate of bug 15824 ***