mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 19:32:35 +00:00
Simple fixes for the gdb remote process plugin on Linux.
llvm-svn: 128291
This commit is contained in:
parent
1080edbcdd
commit
a78867b899
@ -11,6 +11,8 @@
|
||||
#include "GDBRemoteCommunication.h"
|
||||
|
||||
// C Includes
|
||||
#include <string.h>
|
||||
|
||||
// C++ Includes
|
||||
// Other libraries and framework includes
|
||||
#include "lldb/Core/Log.h"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user