diff options
author | Zachary Turner <zturner@google.com> | 2014-08-06 18:16:26 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-08-06 18:16:26 +0000 |
commit | 98688922b7b3cb36a52d07b22a1783482ca76a50 (patch) | |
tree | 06a5943fd63759881f33d644e9400e8111287f0d /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | 413297c53d13a05353fc940cf00ae83ee7f89dbf (diff) | |
download | bcm5719-llvm-98688922b7b3cb36a52d07b22a1783482ca76a50.tar.gz bcm5719-llvm-98688922b7b3cb36a52d07b22a1783482ca76a50.zip |
Creates a socket host object.
This patch moves the logic of many common socket operations into
its own class lldb_private::Socket. It then modifies the
ConnectionFileDescriptor class, and a few users of that class,
to use this new Socket class instead of hardcoding socket logic
directly.
Finally, this patch creates a common interface called IOObject for
any objects that support reading and writing, so that endpoints
such as sockets and files can be treated the same.
Differential Revision: http://reviews.llvm.org/D4641
Reviewed by: Todd Fiala, Greg Clayton
llvm-svn: 214984
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index be90eb2b2c9..30bd762ba7c 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -23,6 +23,7 @@ #include "lldb/Core/StreamString.h" #include "lldb/Host/FileSpec.h" #include "lldb/Host/Host.h" +#include "lldb/Host/Socket.h" #include "lldb/Host/TimeValue.h" #include "lldb/Target/Process.h" @@ -786,7 +787,7 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *hostname, ConnectionFileDescriptor *connection = (ConnectionFileDescriptor *)GetConnection (); // Wait for 10 seconds to resolve the bound port - out_port = connection->GetBoundPort(10); + out_port = connection->GetListeningPort(10); if (out_port > 0) { char port_cstr[32]; @@ -802,7 +803,6 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *hostname, return error; } } - const char *env_debugserver_log_file = getenv("LLDB_DEBUGSERVER_LOG_FILE"); if (env_debugserver_log_file) |