diff options
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index e09bfcaf418..d55609a7b87 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -491,8 +491,13 @@ ProcessPOSIX::RefreshStateAfterStop() { if (log) log->Printf ("ProcessPOSIX::%s() adding thread, tid = %" PRIi64, __FUNCTION__, message.GetChildTID()); + lldb::tid_t child_tid = message.GetChildTID(); ThreadSP thread_sp; - thread_sp.reset(new POSIXThread(*this, message.GetChildTID())); + thread_sp.reset(new POSIXThread(*this, child_tid)); + + POSIXThread *thread = static_cast<POSIXThread*>(thread_sp.get()); + thread->SetName(Host::GetThreadName(GetID(), child_tid).c_str()); + m_thread_list.AddThread(thread_sp); } |