[Lldb-commits] [lldb] r123795 - /lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp

Stephen Wilson wilsons at start.ca
Tue Jan 18 17:29:39 PST 2011


Author: wilsons
Date: Tue Jan 18 19:29:39 2011
New Revision: 123795

URL: http://llvm.org/viewvc/llvm-project?rev=123795&view=rev
Log:
Only enqueue valid ProcessLinux messages.


Modified:
    lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp

Modified: lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp?rev=123795&r1=123794&r2=123795&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/ProcessLinux.cpp Tue Jan 18 19:29:39 2011
@@ -244,7 +244,6 @@
 ProcessLinux::SendMessage(const ProcessMessage &message)
 {
     Mutex::Locker lock(m_message_mutex);
-    m_message_queue.push(message);
 
     switch (message.GetKind())
     {
@@ -252,6 +251,9 @@
         SetPrivateState(eStateStopped);
         break;
 
+    case ProcessMessage::eInvalidMessage:
+        return;
+
     case ProcessMessage::eExitMessage:
         SetExitStatus(message.GetExitStatus(), NULL);
         break;
@@ -260,6 +262,8 @@
         SetExitStatus(-1, NULL);
         break;
     }
+
+    m_message_queue.push(message);
 }
 
 void





More information about the lldb-commits mailing list