summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-01-17 02:20:29 +0000
committerVince Harron <vharron@google.com>2015-01-17 02:20:29 +0000
commiteb303ee5df48c64f791f4b5ed85c055ba1d7f431 (patch)
tree342a29b93865566082438f490f63ad60639507f8 /lldb/source/Host/windows
parentd3e0469a843b32f9f244280a286d2465d9733e6a (diff)
downloadbcm5719-llvm-eb303ee5df48c64f791f4b5ed85c055ba1d7f431.tar.gz
bcm5719-llvm-eb303ee5df48c64f791f4b5ed85c055ba1d7f431.zip
Added Connection::GetURI()
This function returns a URI of the resource that the connection is connected to. This is especially important for connections established by accepting a connection from a remote host. Also added implementations for ConnectionMachPort, ConnectionSharedMemory, Also fixed up some documentation in Connection::Write Renamed ConnectionFileDescriptorPosix::SocketListen to ConnectionFileDescriptorPosix::SocketListenAndAccept Fixed a log message in Socket.cpp Differential Review: http://reviews.llvm.org/D7026 llvm-svn: 226362
Diffstat (limited to 'lldb/source/Host/windows')
-rw-r--r--lldb/source/Host/windows/ConnectionGenericFileWindows.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
index 6b4c470ceb3..bbf315019aa 100644
--- a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
+++ b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
@@ -147,6 +147,7 @@ ConnectionGenericFile::Connect(const char *s, Error *error_ptr)
}
m_owns_file = true;
+ m_uri.assign(s);
return eConnectionStatusSuccess;
}
@@ -175,6 +176,7 @@ ConnectionGenericFile::Disconnect(Error *error_ptr)
::ZeroMemory(&m_file_position, sizeof(m_file_position));
m_owns_file = false;
+ m_uri.clear();
return eConnectionStatusSuccess;
}
@@ -328,6 +330,12 @@ finish:
return return_info.GetBytes();
}
+std::string
+ConnectionGenericFile::GetURI()
+{
+ return m_uri;
+}
+
bool
ConnectionGenericFile::InterruptRead()
{
OpenPOWER on IntegriCloud