From 205afe679855a4ce8149cdaa94d3f0868ce796dc Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 6 Feb 2015 21:38:51 +0000 Subject: Import LLDB as of upstream SVN r225923 (git 2b588ecd) This corresponds with the branchpoint for the 3.6 release. A number of files not required for the FreeBSD build have been removed. Sponsored by: DARPA, AFRL --- source/Core/Connection.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/Core/Connection.cpp') 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(); +} -- cgit v1.2.3