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

Han Ming Ong hanming at apple.com
Tue Feb 28 16:09:16 PST 2012


Author: hanming
Date: Tue Feb 28 18:09:16 2012
New Revision: 151678

URL: http://llvm.org/viewvc/llvm-project?rev=151678&view=rev
Log:
<rdar://10950196>

Returns true when there is any info retrieved.

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=151678&r1=151677&r2=151678&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Tue Feb 28 18:09:16 2012
@@ -1221,12 +1221,20 @@
 Host::GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info)
 {
     process_info.SetProcessID(pid);
+    bool success = false;
+    
     if (GetMacOSXProcessArgs (NULL, process_info))
-    {
-        GetMacOSXProcessCPUType (process_info);
-        GetMacOSXProcessUserAndGroup (process_info);
+        success = true;
+    
+    if (GetMacOSXProcessCPUType (process_info))
+        success = true;
+    
+    if (GetMacOSXProcessUserAndGroup (process_info))
+        success = true;
+    
+    if (success)
         return true;
-    }    
+    
     process_info.Clear();
     return false;
 }





More information about the lldb-commits mailing list