diff options
| author | Stephen Wilson <wilsons@start.ca> | 2011-02-09 20:10:35 +0000 |
|---|---|---|
| committer | Stephen Wilson <wilsons@start.ca> | 2011-02-09 20:10:35 +0000 |
| commit | d4182f4b018bc996b4488896f7d72e1cc1c4d205 (patch) | |
| tree | 55be2c792913a026d4865af61f6f10139059e262 /lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp | |
| parent | 8bba644bf4d7c1c3b4f9e035cb3497aca64e3906 (diff) | |
| download | bcm5719-llvm-d4182f4b018bc996b4488896f7d72e1cc1c4d205.tar.gz bcm5719-llvm-d4182f4b018bc996b4488896f7d72e1cc1c4d205.zip | |
linux: use IS_VALID_LLDB_HOST_THREAD.
Update the linux plugin code to use the new check for a valid host
thread introduced in r125067.
llvm-svn: 125213
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp b/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp index 2c936386baa..490ca6f60a3 100644 --- a/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp +++ b/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp @@ -555,7 +555,7 @@ WAIT_AGAIN: // Finally, start monitoring the child process for change in state. m_monitor_thread = Host::StartMonitoringChildProcess( ProcessMonitor::MonitorCallback, this, GetPID(), true); - if (m_monitor_thread == LLDB_INVALID_HOST_THREAD) + if (!IS_VALID_LLDB_HOST_THREAD(m_monitor_thread)) { error.SetErrorToGenericError(); error.SetErrorString("Process launch failed."); @@ -580,7 +580,7 @@ ProcessMonitor::StartOperationThread(LaunchArgs *args, Error &error) { static const char *g_thread_name = "lldb.process.linux.operation"; - if (m_operation_thread != LLDB_INVALID_HOST_THREAD) + if (IS_VALID_LLDB_HOST_THREAD(m_operation_thread)) return; m_operation_thread = @@ -592,7 +592,7 @@ ProcessMonitor::StopOperationThread() { lldb::thread_result_t result; - if (m_operation_thread == LLDB_INVALID_HOST_THREAD) + if (!IS_VALID_LLDB_HOST_THREAD(m_operation_thread)) return; Host::ThreadCancel(m_operation_thread, NULL); @@ -1009,7 +1009,7 @@ ProcessMonitor::StopMonitoringChildProcess() { lldb::thread_result_t thread_result; - if (m_monitor_thread != LLDB_INVALID_HOST_THREAD) + if (IS_VALID_LLDB_HOST_THREAD(m_monitor_thread)) { Host::ThreadCancel(m_monitor_thread, NULL); Host::ThreadJoin(m_monitor_thread, &thread_result, NULL); |

