There seems to be some odd corner case where we shut down the ProcessGDBRemote, but...
authorJim Ingham <jingham@apple.com>
Thu, 1 Nov 2012 01:15:33 +0000 (01:15 +0000)
committerJim Ingham <jingham@apple.com>
Thu, 1 Nov 2012 01:15:33 +0000 (01:15 +0000)
commit455fa5ccc6ad7a5a6227166f74474124d614e8ea
treefbc785341c505e0fb1c73c012b8034f262ace604
parent4e45abf0aeb7957e1bd7b58785383d0d753c9e23
There seems to be some odd corner case where we shut down the ProcessGDBRemote, but we haven't managed to shut down the async thread.  That causes the ProcessGDBRemote::AsyncThread to crash when it wakes up.  So I changed StartAsyncThread and StopAsyncThread to be callable multiple times (only the first one does anything) so that we can just shut it down unequivocally in the ProcessGDBRemote destructor.

<rdar://problem/12602981>

llvm-svn: 167197
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h