[Lldb-commits] [PATCH] Remove POSIX thread/process abstraction

Ed Maste emaste at freebsd.org
Wed Jun 24 10:53:14 PDT 2015


================
Comment at: source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp:482-508
@@ +481,29 @@
+
+#if 0
+/* Old posix one */
+Error
+ProcessFreeBSD::DoResume()
+{
+    StateType state = GetPrivateState();
+
+    assert(state == eStateStopped);
+
+    SetPrivateState(eStateRunning);
+
+    bool did_resume = false;
+
+    Mutex::Locker lock(m_thread_list.GetMutex());
+
+    uint32_t thread_count = m_thread_list.GetSize(false);
+    for (uint32_t i = 0; i < thread_count; ++i)
+    {
+        FreeBSDThread *thread = static_cast<FreeBSDThread*>(
+            m_thread_list.GetThreadAtIndex(i, false).get());
+        did_resume = thread->Resume() || did_resume;
+    }
+    assert(did_resume && "Process resume failed!");
+
+    return Error();
+}
+#endif
+
----------------
This will be deleted

================
Comment at: source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp:605-608
@@ +604,6 @@
+
+#if 0
+void
+ProcessFreeBSD::SendMessage(const ProcessMessage &message)
+{
+    Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet (POSIX_LOG_PROCESS));
----------------
this will be deleted

http://reviews.llvm.org/D10698

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list