summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-09-03 09:36:22 +0000
committerPavel Labath <labath@google.com>2015-09-03 09:36:22 +0000
commit5055685cda022119052d86cb468cf2b7f4d19a13 (patch)
tree28e4b0856c1d2a8e1527bef4233a33b76db02a8e /clang/lib/Basic/Targets.cpp
parentee0286201cb2d5a1462d521d3dc83261209e76b4 (diff)
downloadbcm5719-llvm-5055685cda022119052d86cb468cf2b7f4d19a13.tar.gz
bcm5719-llvm-5055685cda022119052d86cb468cf2b7f4d19a13.zip
Fix deadlock while attaching to inferiors
Summary: There was a race condition in the AsyncThread, where we would end up sending a vAttach notification to the thread before it got a chance set up its listener (this can be reproduced by adding a sleep() at the very beginning of ProcessGDBRemote::AsyncThread()). This event would then get lost and we LLDB would deadlock. I fix this by setting up the listener early on, in the ProcessGDBRemote constructor. This should improve the stability of all attach tests. For now, I am removing XTIMEOUT from TestAttachResume, and will watch the buildbots for signs of trouble. Reviewers: clayborg, ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12552 llvm-svn: 246756
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud