Avoid a race condition when loading core files where the process might still be handl...
authorGreg Clayton <gclayton@apple.com>
Fri, 20 Feb 2015 20:59:47 +0000 (20:59 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 20 Feb 2015 20:59:47 +0000 (20:59 +0000)
commit35824e36f5f3f39c6c4220ebd26b414a2b4e6350
tree7c7f14236af581d1f1f666827ac32fabca6c4045
parent9ecaa174d69bc22dc9a5896457915e0518fe9abc
Avoid a race condition when loading core files where the process might still be handling the eStateStopped event we post to the private state thread causing us to return from SBTarget::LoadCore() before the process is ready to have API calls used on it.

This fixes a crasher that could happen when loading core files from scripts.

llvm-svn: 230060
lldb/source/Target/Process.cpp