diff options
author | Greg Clayton <gclayton@apple.com> | 2011-02-08 01:34:25 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-02-08 01:34:25 +0000 |
commit | 2da6d495236931a07a79b605821210d096fe6f30 (patch) | |
tree | 065dd79b258f5f72b7cde3fb214de18181f5934f /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | de7f699754327136f0e5a592b65079560225934c (diff) | |
download | bcm5719-llvm-2da6d495236931a07a79b605821210d096fe6f30.tar.gz bcm5719-llvm-2da6d495236931a07a79b605821210d096fe6f30.zip |
Patch that allows for thread_t to be something more complex than an
integer. Modified patch from Kirk Beitz.
llvm-svn: 125067
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 41296d9733f..50fa2005e17 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -131,7 +131,7 @@ ProcessGDBRemote::~ProcessGDBRemote() { m_dynamic_loader_ap.reset(); - if (m_debugserver_thread != LLDB_INVALID_HOST_THREAD) + if (IS_VALID_LLDB_HOST_THREAD(m_debugserver_thread)) { Host::ThreadCancel (m_debugserver_thread, NULL); thread_result_t thread_result; @@ -2174,7 +2174,7 @@ ProcessGDBRemote::StartAsyncThread () // Create a thread that watches our internal state and controls which // events make it to clients (into the DCProcess event queue). m_async_thread = Host::ThreadCreate ("<lldb.process.gdb-remote.async>", ProcessGDBRemote::AsyncThread, this, NULL); - return m_async_thread != LLDB_INVALID_HOST_THREAD; + return IS_VALID_LLDB_HOST_THREAD(m_async_thread); } void @@ -2188,7 +2188,7 @@ ProcessGDBRemote::StopAsyncThread () m_async_broadcaster.BroadcastEvent (eBroadcastBitAsyncThreadShouldExit); // Stop the stdio thread - if (m_async_thread != LLDB_INVALID_HOST_THREAD) + if (IS_VALID_LLDB_HOST_THREAD(m_async_thread)) { Host::ThreadJoin (m_async_thread, NULL, NULL); } |