diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-03-25 18:16:28 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-03-25 18:16:28 +0000 |
commit | a78867b8999bda4e277028e4d3417d805f0c4c2d (patch) | |
tree | 4c2dd674456c9c327d103aea9332a415b3cb7718 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 1080edbcdd7d24ad5213749e396e23b54c1a3040 (diff) | |
download | bcm5719-llvm-a78867b8999bda4e277028e4d3417d805f0c4c2d.tar.gz bcm5719-llvm-a78867b8999bda4e277028e4d3417d805f0c4c2d.zip |
Simple fixes for the gdb remote process plugin on Linux.
llvm-svn: 128291
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index e5a1d7c0606..49f9aa6eb9f 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -10,6 +10,7 @@ // C Includes #include <errno.h> #include <spawn.h> +#include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> @@ -56,7 +57,7 @@ using namespace lldb_private; static inline uint16_t get_random_port () { - return (arc4random() % (UINT16_MAX - 1000u)) + 1000u; + return (rand() % (UINT16_MAX - 1000u)) + 1000u; } |