[MainLoop] Fix assertion failure
authorPavel Labath <labath@google.com>
Fri, 17 Jul 2015 10:08:38 +0000 (10:08 +0000)
committerPavel Labath <labath@google.com>
Fri, 17 Jul 2015 10:08:38 +0000 (10:08 +0000)
commitf3898c30e6ce51183170e161a85e0c0964f1c5a9
treee2069c1f00e0ce168fa78387dcc6dd5cd4a73242
parent65bc306345848b3a79753a435a19a639da6942e2
[MainLoop] Fix assertion failure

Upon connection termination the waitable handle of an IOObject gets reset to an invalid handle.
This caused a problem since we used the object->GetWaitableHandle as a key to the set of
registered events. The fix is to use something more immutable as a key: we make a copy of the
original waitable handle, instead of holding onto the IOObject.

llvm-svn: 242515
lldb/include/lldb/Host/MainLoopBase.h
lldb/include/lldb/Host/posix/MainLoopPosix.h
lldb/source/Host/posix/MainLoopPosix.cpp