ramana-nvr added a comment.

Sorry, I am not helpful to you in providing a unit test case for this patch. I 
am still learning about test suite framework and/or trying to get the lldb test 
suite up and running.

Regarding how I got to this, it is not that I have run into some issue due to 
the original code. For my private port, I had to create a thread ID list 
similar to m_thread_ids and during code browsing for that I happened to see the 
code in concern and observed that clearing m_thread_pcs is wrong there.

After the process gets stopped, while trying to set the thread stop info, we 
also update the thread list (ProcessGDBRemote::SetThreadStopInfo() ---> 
Process::UpdateThreadListIfNeeded() ---> ProcessGDBRemote::UpdateThreadList()) 
and here we can reach UpdateThreadIDList() if m_thread_ids.empty() is true i.e. 
if we somehow failed to populate m_thread_ids while parsing the stop info 
packet and need to populate the m_thread_ids now.


Repository:
  rL LLVM

https://reviews.llvm.org/D48868



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to