diff options
Diffstat (limited to 'source/Core/Connection.cpp')
-rw-r--r-- | source/Core/Connection.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/Core/Connection.cpp b/source/Core/Connection.cpp index 3c9bb8b1b7eda..3f740a1ed82af 100644 --- a/source/Core/Connection.cpp +++ b/source/Core/Connection.cpp @@ -13,6 +13,12 @@ // Project includes #include "lldb/Core/Connection.h" +#if defined(_WIN32) +#include "lldb/Host/windows/ConnectionGenericFileWindows.h" +#endif + +#include "lldb/Host/ConnectionFileDescriptor.h" + using namespace lldb_private; Connection::Connection () @@ -22,3 +28,13 @@ Connection::Connection () Connection::~Connection () { } + +Connection * +Connection::CreateDefaultConnection(const char *url) +{ +#if defined(_WIN32) + if (strstr(url, "file://") == url) + return new ConnectionGenericFile(); +#endif + return new ConnectionFileDescriptor(); +} |