Fix a race condition where you could set the selected thread & target in the
authorJim Ingham <jingham@apple.com>
Mon, 19 Jan 2015 23:51:51 +0000 (23:51 +0000)
committerJim Ingham <jingham@apple.com>
Mon, 19 Jan 2015 23:51:51 +0000 (23:51 +0000)
commitd5ac1ab65d4c305cfbf107f2dedfdd94474ffa37
treedc61041aa10b1dfa86e297d60e55336171091be4
parent2a6b5fcfaaae7c65d0a56d3f3e729a283dbdf6a3
Fix a race condition where you could set the selected thread & target in the
CommandInterpreter's execution context AFTER the process had started running
and before it initially stopped.  Also fixed one test case that was implicitly
using this (and an abuse of the async mode) to accidentally succeed.

<rdar://problem/16814726>

llvm-svn: 226528
lldb/include/lldb/Target/Process.h
lldb/source/Target/ExecutionContext.cpp
lldb/source/Target/Process.cpp
lldb/test/functionalities/signal/TestSendSignal.py