[Lldb-commits] [lldb] r190942 - Warning cleanup.

Michael Sartain mikesart at valvesoftware.com
Wed Sep 18 08:32:06 PDT 2013


Author: mikesart
Date: Wed Sep 18 10:32:06 2013
New Revision: 190942

URL: http://llvm.org/viewvc/llvm-project?rev=190942&view=rev
Log:
Warning cleanup.

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

Modified: lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp?rev=190942&r1=190941&r2=190942&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp Wed Sep 18 10:32:06 2013
@@ -1610,14 +1610,14 @@ ProcessMonitor::WaitForInitialTIDStop(ll
 {
     Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet (POSIX_LOG_PROCESS));
     if (log)
-        log->Printf ("ProcessMonitor::%s(%d) waiting for thread to stop...", __FUNCTION__, tid);
+        log->Printf ("ProcessMonitor::%s(%" PRIu64 ") waiting for thread to stop...", __FUNCTION__, tid);
 
     // Wait for the thread to stop
     while (true)
     {
         int status = -1;
         if (log)
-            log->Printf ("ProcessMonitor::%s(%d) waitpid...", __FUNCTION__, tid);
+            log->Printf ("ProcessMonitor::%s(%" PRIu64 ") waitpid...", __FUNCTION__, tid);
         lldb::pid_t wait_pid = waitpid(tid, &status, __WALL);
         if (status == -1)
         {
@@ -1628,13 +1628,13 @@ ProcessMonitor::WaitForInitialTIDStop(ll
             else
             {
                 if (log)
-                    log->Printf("ProcessMonitor::%s(%d) waitpid error -- %s", __FUNCTION__, tid, strerror(errno));
+                    log->Printf("ProcessMonitor::%s(%" PRIu64 ") waitpid error -- %s", __FUNCTION__, tid, strerror(errno));
                 return false; // This is bad, but there's nothing we can do.
             }
         }
 
         if (log)
-            log->Printf ("ProcessMonitor::%s(%d) waitpid, status = %d", __FUNCTION__, tid, status);
+            log->Printf ("ProcessMonitor::%s(%" PRIu64 ") waitpid, status = %d", __FUNCTION__, tid, status);
 
         assert(wait_pid == tid);
 
@@ -1753,6 +1753,7 @@ ProcessMonitor::StopThread(lldb::tid_t t
 
         switch (message.GetKind())
         {
+            case ProcessMessage::eAttachMessage:
             case ProcessMessage::eInvalidMessage:
                 break;
 
@@ -1971,8 +1972,6 @@ ProcessMonitor::GetCrashReasonForSIGBUS(
 void
 ProcessMonitor::ServeOperation(OperationArgs *args)
 {
-    int status;
-
     ProcessMonitor *monitor = args->m_monitor;
 
     // We are finised with the arguments and are ready to go.  Sync with the





More information about the lldb-commits mailing list