[Lldb-commits] [lldb] r128291 - in /lldb/trunk/source/Plugins/Process/gdb-remote: GDBRemoteCommunication.cpp ProcessGDBRemote.cpp
Stephen Wilson
wilsons at start.ca
Fri Mar 25 11:16:28 PDT 2011
Author: wilsons
Date: Fri Mar 25 13:16:28 2011
New Revision: 128291
URL: http://llvm.org/viewvc/llvm-project?rev=128291&view=rev
Log:
Simple fixes for the gdb remote process plugin on Linux.
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=128291&r1=128290&r2=128291&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Fri Mar 25 13:16:28 2011
@@ -11,6 +11,8 @@
#include "GDBRemoteCommunication.h"
// C Includes
+#include <string.h>
+
// C++ Includes
// Other libraries and framework includes
#include "lldb/Core/Log.h"
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=128291&r1=128290&r2=128291&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Fri Mar 25 13:16:28 2011
@@ -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 @@
static inline uint16_t
get_random_port ()
{
- return (arc4random() % (UINT16_MAX - 1000u)) + 1000u;
+ return (rand() % (UINT16_MAX - 1000u)) + 1000u;
}
More information about the lldb-commits
mailing list