[Lldb-commits] [lldb] r110676 - /lldb/trunk/source/Host/macosx/Host.mm

Benjamin Kramer benny.kra at googlemail.com
Tue Aug 10 06:22:03 PDT 2010


Author: d0k
Date: Tue Aug 10 08:22:03 2010
New Revision: 110676

URL: http://llvm.org/viewvc/llvm-project?rev=110676&view=rev
Log:
Fix clang warnings.

Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=110676&r1=110675&r2=110676&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Tue Aug 10 08:22:03 2010
@@ -823,7 +823,7 @@
     if (size_of_pids == -1)
         return 0;
         
-    pid_t our_pid = getpid();
+    lldb::pid_t our_pid = getpid();
     
     for (int i = 0; i < num_pids; i++)
     {
@@ -835,7 +835,7 @@
         // Don't offer to attach to zombie processes, already traced or exiting
         // processes, and of course, ourselves...  It looks like passing the second arg of
         // 0 to proc_listpids will exclude zombies anyway, but that's not documented so...
-        if ((bsd_info.pbi_flags & (PROC_FLAG_TRACED | PROC_FLAG_INEXIT) != 0)
+        if (((bsd_info.pbi_flags & (PROC_FLAG_TRACED | PROC_FLAG_INEXIT)) != 0)
              || (bsd_info.pbi_status == SZOMB)
              || (bsd_info.pbi_pid == our_pid))
              continue;





More information about the lldb-commits mailing list