Hi emaste,

pid_t is int32_t on FreeBSD, not uint64_t.  I think it's better committing a 
small sin her rather than changing it globally.

http://reviews.llvm.org/D8491

Files:
  ProcessMonitor.cpp

Index: ProcessMonitor.cpp
===================================================================
--- ProcessMonitor.cpp
+++ ProcessMonitor.cpp
@@ -964,8 +964,13 @@
     lldb_utility::PseudoTerminal terminal;
     const size_t err_len = 1024;
     char err_str[err_len];
-    lldb::pid_t pid;

+    // XXX: This should be ideally lldb::pid_t but
+    // currently lldb defines pid_t as unsigned 64-bit
+    // everywhere, while FreeBSD defines the type as
+    // signed 32-bits.
+    int32_t pid;
+
     // Propagate the environment if one is not supplied.
     if (envp == NULL || envp[0] == NULL)
         envp = const_cast<const char **>(environ);

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
Index: ProcessMonitor.cpp
===================================================================
--- ProcessMonitor.cpp
+++ ProcessMonitor.cpp
@@ -964,8 +964,13 @@
     lldb_utility::PseudoTerminal terminal;
     const size_t err_len = 1024;
     char err_str[err_len];
-    lldb::pid_t pid;

+    // XXX: This should be ideally lldb::pid_t but
+    // currently lldb defines pid_t as unsigned 64-bit
+    // everywhere, while FreeBSD defines the type as
+    // signed 32-bits.
+    int32_t pid;
+
     // Propagate the environment if one is not supplied.
     if (envp == NULL || envp[0] == NULL)
         envp = const_cast<const char **>(environ);
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to